We are all used to playing 3x3 tic tac toe. A relatively easy game to tie, and a bit harder to pull off a win. This bot takes it to the next level!
You can now play 5x5 tic tac toe against a very good ai. This is a true challenge to win. If you win, comment below (you deserve a cookie).
How the AI Works
The Ai follows a set process:
1) Check if there is a space where either player can go to win immediately.
If so, go there. You are either blocking the enemy or winning the game.
2) Check if you can make a fork. That is a move that opens up multiple groups of five empty spaces. With forks, you will be able to attempt to win in different directions.
3) Play an open corner (4 spaces)
4) Play an open center space (9 spaces)
5) Play an empty side space (12 spaces)