This is a simple implementation of the classic Tic-Tac-Toe game using Python and the Tkinter GUI framework. The game allows you to play against a computer opponent that makes random moves.
- Player vs. Computer gameplay.
- Simple and intuitive GUI using Tkinter.
- Score tracking for the player.
- Random move generation for the computer opponent.
- Easy-to-understand code structure for further customization.
-
Clone the repository:
git clone https://github.com/MMansy19/X-O-Game.git
-
Navigate to the project directory:
cd tic-tac-toe
-
Run the game:
python tic_tac_toe.py
- The game starts with the player as "X" and the computer as "O".
- Click on an empty cell to make a move.
- The game alternates between the player and the computer until there is a winner or a draw.
- The player's score is displayed at the bottom of the window.
- Mahmoud Mansy
This project is licensed under the MIT License - see the LICENSE file for details.
- Thanks to the Tkinter library for providing a simple and powerful GUI framework for Python.
- Special thanks to OpenAI for inspiring the project.
X-O - A Tic-Tac-Toe Game by Mahmoud Mansy (GitHub)