This is a Tic-Tac-Toe AI developed as part of the CS50 AI course, implementing the Minimax algorithm for optimal gameplay.
- Unbeatable AI: Implements the Minimax algorithm to ensure optimal decisions in any given game state.
- Interactive Gameplay: Allows you to play against the AI, experiencing dynamic, real-time decision-making.
- Pygame: Built to with the pygame library.
- Python 3.x is required to run this AI.
- Basic familiarity with terminal commands and navigating directories.
- Clone the repository:
git clone https://github.com/LuisDelmo/MiniMax_TicTactoe.git cd tictactoe-minimax-ai
- Run the game:
python tictactoe.py
- The game prompts you to make a move by a click on the screen.
- Once your move is made, the AI will respond with its calculated move.
- The Minimax algorithm is a decision rule for minimizing the possible loss while maximizing the potential gain. This AI evaluates each possible game state and picks moves that lead to a guaranteed win or draw.