An interactive Tic Tac Toe game built using Python and Tkinter, featuring both Player vs Player and Player vs AI modes.
-
Two game modes: Player vs Player and Player vs AI
-
Visually appealing game board with custom font and colors
-
Simple and intuitive user interface
-
Intelligent AI opponent that prioritizes winning and blocking the player
-
Reset functionality after each game
-
Open a terminal or command prompt in the folder containing the tic_tac_toe.py file.
-
Run the following command:
python tic_tac_toe.py
- The game will start with the main menu, where you can choose between "Player vs Player" and "Player vs AI" modes.
Select a mode, and the Tic Tac Toe game will begin. You can play either against another player or the AI opponent.
After each game, the board will reset automatically, allowing you to play again.