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 View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2023-09-17 (9 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 68 All time: 10,316 This week: 79Up
Version License PHP version Categories
tic 1.0The PHP License7HTML, Algorithms, Games, Artificial i..., P...


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: 41
All time rank: 35492 in Bahrain Bahrain
Week rank: 89 Up1 in Bahrain Bahrain Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
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 )

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:10,316
This week:79Up