PHP Classes
elePHPant
Icontem

Tic-Tac-Toe: Tic-Tac-Toe game using alpha beta search algorithm

Recommend this page to a friend!

  Author Author  
Name: Amin <contact>
Classes: 3 packages by
Country: United States United States
Innovation award
Innovation award
Nominee: 2x

Winner: 1x


  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
This package implements an interactive Tic-Tac-Toe game

It can present a Tic-Tac-Toe board that is updated using AJAX requests upon each user move.

The package implements the alpha beta search algorithm (Minimax search optimized by performing alpha beta pruning) for determining the next move, which are common algorithms for zero-sum two player games (e.g. Tic Tac Toe and Chess).

Details
{startverticalbanner}
If you want the computer to start the game, please make following change in Const object(/libs/Position.js):
TURN : this.COM

  Classes of Amin  >  Tic-Tac-Toe  >  Download Download .zip .tar.gz  >  Support forum Support forum (13)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Tic-Tac-Toe
Base name: tic-tac-toe
Description: Tic-Tac-Toe game using alpha beta search algorithm
Version: 1.0
PHP version: 5
License: GNU General Public License (GPL)
 
  Groups   Applications   Files Files  

  Groups  
Group folder image Algorithms Numerical and statistical algorithms View top rated classes
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Games Sports and online games View top rated classes
Group folder image Artificial intelligence Automation of tasks using human-like intelligence View top rated classes


  Innovation Award  
PHP Programming Innovation award winner
December 2010
Winner


Prize: One copy of the Zend Studio
Tic-Tac-Toe is a very simple game. However, it is not trivial to implement a strategy to win as a computer opponent.

This class implements the alpha beta search algorithm to determine the next move of a computer opponent in a Tic-Tac-Toe game.

Manuel Lemos

  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.

  Files folder image Files  
File Role Description
Files folder imagelibs (4 files)
Files folder imagetest (2 files)
Plain text file Board.php Class board class
Accessible without login Plain text file COPYING.txt Lic. GPL
Plain text file GameSearch.php Class abstract search class
Accessible without login Plain text file index.html Data example
Accessible without login Plain text file index.php Example
Accessible without login Plain text file README.txt Doc. Read me
Plain text file TicTacToe.php Class main class

  Files folder image Files  /  libs  
File Role Description
  Accessible without login Plain text file jquery-1.4.2.js Data js library
  Accessible without login Plain text file Position.js Data js library
  Accessible without login Plain text file raphael-min.js Data js library
  Accessible without login Plain text file TicTacToe.js Data js library

  Files folder image Files  /  test  
File Role Description
  Accessible without login Plain text file BoardTest.php Test test
  Accessible without login Plain text file TicTacToeTest.php Test test

Install with Composer Install with Composer - Download Download all files: tic-tac-toe.tar.gz tic-tac-toe.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.