A simple Tic Tac Toe game in Python where you play against an AI bot. The bot uses the Minimax algorithm for decision-making and can play at three different difficulty levels.
- Player vs AI bot gameplay
- Three difficulty levels:
- Easy (1): Bot makes random moves sometimes
- Medium (2): Bot evaluates positions heuristically
- Hard (3): Bot plays optimally using full Minimax
- Detects wins, losses, and draws
- Clean text-based interface
- Python 3.10 or newer (tested on 3.13.5)
- Libraries: No external libraries required (uses only standard Python libraries like
osandjson)
- Run the Python script:
python tictactoe.py