/TicTacToe-AI

Implementation of Artificial Intelligence in the classic game of TicTacToe.

Primary LanguagePython

TicTacToe using AI

This is a project of implementing aritificial intelligence in the classic game of TicTacToe. This project was made using python and pygame. The AI algorithm used for the AI in this project was MiniMax. You can play this game as '❎' as well as '🅾️'. You can make the AI go first or chose it to go after you.

🟢 This AI is cannot be defeated in TicTacToe! The match will result in either a tie or the user losing to the AI.

OPEN CHALLENGE: Try to defeat my AI, If you manage to do so, take a screenshot of it and tag me on my instagram: @manavmehta.official

Source Code

I have made the source code available to all. runner.py contains the code for the pygame UI and tictactoe.py contains the code for the AI algorithm. The code is free to use for everyone.

Credits

AI algorithm was implemented by ManavMehta-Official and the pygame UI was made by cs50ai. This project was given by cs50ai.

For more details on this project Click Here