This is a console-based of the classic Tic Tac Toe game for two players. The game features an interactive interface, state-saving functionality, and a stats tracker. Players can save and load game states, view historical game statistics, and enjoy a user-friendly experience enhanced with colored visuals.
- Uses the
coloramalibrary to add colors to the console output.
- Ensure that you have Python installed on your system .
- Install the required dependency using pip:
pip install colorama - Run the script using Python:
python tic_tac_toe_game.py - Follow the on-screen instructions to play the game.
- Choose "no" when prompted to load a saved game.
- Choose "yes" to resume from the last saved state.
- Choose "stats" to see previous game outcomes.
- Choose "restart" to start fresh and delete saved data.
- download this repository to your local machine.
- Navigate to the project directory in your terminal.
- Install the required library:
pip install colorama
- tic_tac_toe_game.py: Main script containing the game logic.
- game_state.txt: Automatically generated file to store the current board state and player turn.
- game_stats.txt: Automatically generated file to track game results (wins/draws).
Enjoy playing Tic Tac Toe!