This project has been fully rewritten from scratch as a clean-code, test-driven pygame application — with a graphical interface, four AI difficulty levels, three game modes (Human vs Human, Human vs AI, AI vs AI), per-player timers, game history with replay, and 310 unit tests.
A classic Tic-Tac-Toe game implemented in Python with a clean command-line interface and a challenging AI opponent. This project was a joy to create, and I hope you have fun playing it!
- Two Game Modes: Play against another person or challenge the computer.
- Score Tracking: The game keeps score across multiple rounds.
- (Unbeatable?) AI: The computer opponent uses the minimax algorithm to play a perfect game. Can you force a draw? 🤔
- Interactive Gameplay: The game guides you with clear instructions at every step.
-
Make sure you have Python 3 installed.
-
Clone this repository to your local machine.
-
Navigate to the project directory "code" in your terminal.
-
Run the game with the following command:
python main.py
Enjoy the game!