A simple and interactive Tic Tac Toe game built using Python and Pygame. The game features a home screen with a title, logo, and a play button. Players can enjoy a visually appealing interface with turn-based gameplay and win/draw detection.
- Home Screen: Includes a logo, game title, and a play button.
- Turn-Based Gameplay: Players alternate between
X
andO
. - Win/Draw Detection: Highlights winning rows, columns, or diagonals and detects draw conditions.
- Game Reset: Automatically resets the game after a win or draw.
- Responsive Design: Dynamic updates to the game window.
- Python 3.6 or higher
- Pygame library
To install Pygame, run:
pip install pygame
- Clone or download this repository.
- Ensure all assets (e.g.,
logo.png
,x.png
,o.png
) are present in theassets
folder. - Run the game using:
python main.py
- Click the "PLAY" button on the home screen to start the game.
- Click on the grid to place your
X
orO
. - Alternate turns between players.
- The game will detect a winner or a draw:
- Winning lines are highlighted.
- A message is displayed indicating the result.
- The game resets automatically after 2 seconds.
project/
├── assets/
│ ├── logo.png
│ ├── x.png
│ └── o.png
├── main.py
└── README.md
- Developer: Aditya Manoj Shinde
- Framework: Pygame
- Add AI for single-player mode.
- Implement score tracking across multiple rounds.
- Enhance the UI with animations and sound effects.
Enjoy the game and have fun!