Welcome to the Tic Tac Toe Game repository! This project is a modern implementation of the classic Tic Tac Toe game, built using Python and Pygame. It features a graphical interface with custom images for the X and O symbols, and provides a simple yet engaging way to play the game against another player on the same machine.
- Graphical Interface: The game includes a visually appealing interface with custom images for X and O.
- Win Detection: The game automatically detects wins and highlights the winning line.
- Draw Detection: The game detects when there is no possible winner and declares a draw.
- Easy Reset: The game automatically resets after a short delay when a win or draw occurs.
![]() |
---|
Game Opening |
![]() |
---|
In-game Screenshot |
![]() |
---|
In-game Screenshot |
- Pygame
-
Clone the repository:
git clone https://github.com/anishkumarvedant/tic-tac-toe-game.git
-
Change into the project directory:
cd tic-tac-toe-game
-
Install the required packages:
pip install pygame
To start the game, simply run the tic_tac_toe.py
script:
python3 tic_tac_toe.py
The game opens with a splash screen and then displays the game board. Players take turns clicking on the grid to place their X or O. The game will automatically detect a win or draw and reset after displaying the result.
Contributions are welcome! Feel free to fork the repository and submit pull requests with your improvements and bug fixes.
This project is licensed under the MIT License. See the LICENSE
file for details.
This game is for educational purposes and personal enjoyment. Ensure you have the appropriate rights to use the graphic and sound assets included in the game.