A simple AI TicTacToe built with pygame. The AI is a game playing agent which makes its best possible decisions based on the search algorithm. Multiple search algorithms like MinMax, Alpha Beta puring, Depth limited Search and Monte Carlo Tree Search were implemented.
To play the game simply run the TicTacToe.py file and then:
- After pygame window pops up select the game you want to play.
- Select 1 for tic tac toe and 2 for open field TicTacToe.
- If you select 1 then select the algorithm and play.
- press r to reset at anytime and esc to exit.
- If you select 2 then enter the Grid size and give the number of connecting pieces.
- MinMax
- AlphaBetaPruning
- Depth Limited Search
- Combination of AlphaBetaPruning and Depth Limited Search
- Monte Carlo Tree Search