A command line Tic-Tac-Toe game with AI.
This Tic-Tac-Toe AI was made as a challenge with my friends to make the best one. This version was implemented with my knowledge without resorting to any Tic-Tac-Toe pre-made AI algorithm or even google searching so it might be quiet rough but I tried my best π.
It should win most games.
-
You can download the source code from the download code button from above, or you can clone the code through git.
-
If Python was not downloaded download it from here.
-
Open a command prompt or terminal where the project folder is downloaded, for windows you can follow these instructions.
-
Run this command to open the
game.py
filepython game.py
-
Now you can play the game, the output will be like this:
You can play by writing the location you want to play in as demonstrated in the screenshot above
-
Have FUN ππ