A sample and useful implementation of the Tic Tac Toe game using javascript and canvas 2d.
Play the Tic Tic Toe game with diffrent AI strategies
You can play the game here, Play.
- Choose the AI strategy you want to play with
- Click on the board to play or choose the O button to let the AI play first
- The game will end when there is a winner or a draw
-
Random
The AI will play randomly
-
Newell and Simon
The AI will play using the Newell and Simon strategy
-
Minimax
The AI will play using the minimax algorithm
-
Minimax with alpha-beta pruning
The AI will play using the minimax algorithm with alpha-beta pruning