PHP Classes

AI PHP Tic-Tac-Toe: Process two-player moves of a Web Tic-Tac-Toe game

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 68 All time: 10,325 This week: 61Up
Version License PHP version Categories
tic 1.0The PHP License7HTML, Algorithms, Games, Artificial i..., P...
Description 

Author

This package can process two-player moves of a Web Tic-Tac-Toe game.

It provides a script that can display a board of the Tic-Tac-Toe game that one person can play in turns against the machine.

The board will start with a three-by-three grid with buttons the human player can use to tell his moves.

The script processes the human player moves, executes the machine side player moves using the Minimax algorithm with Alpha-Beta pruning, then updates the board, checks if the game ended either when one player wins, or there is a tie, displays a message in case the game ended, and lets the human play start a new game.

Picture of Ahmed Abdulla
  Performance   Level  
Name: Ahmed Abdulla <contact>
Classes: 11 packages by
Country: Bahrain Bahrain
Age: 42
All time rank: 35232 in Bahrain Bahrain
Week rank: 178 Up1 in Bahrain Bahrain Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files (1)  
File Role Description
Accessible without login Plain text file index.php Appl. a simple PHP script for a two-player Tic-Tac-Toe game ( AI )

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:68
This week:0
All time:10,325
This week:61Up