This is a simple Tic-Tac-Toe game built using Python's tkinter
library. The game allows two players to play against each other on the same device. The interface is intuitive and user-friendly, built entirely with tkinter
.
- Two-player mode (Player X and Player O).
- Displays real-time game status (whose turn it is).
- Detects winner or draw and announces the result.
- Easy to reset the game board for a new game.
- Python 3.x
tkinter
(usually included with Python)
- Clone the repository:
git clone https://github.com/your-username/tic-tac-toe-tkinter.git
cd tic-tac-toe-tkinter
- Run the game:
python tic_tac_toe.py
- Run the script and the Tic-Tac-Toe window will appear.
- The game is played on a 3x3 grid.
- Players take turns to place their mark (X or O) by clicking on the grid squares.
- The first player to get three of their marks in a horizontal, vertical, or diagonal row wins.
- If all squares are filled and no player has won, the game ends in a draw.
- After each game, you can reset the board by clicking the "Reset" button.
- To start a new game, simply click the "New Game" button.
- Add a computer opponent (AI) to play against.
- Add a main menu and customization options (e.g., board size).
This project is licensed under the MIT License. See the LICENSE file for details.