Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mmansy19/x-o-game

Welcome to Professional-TicTacToe, a polished and feature-rich implementation of the classic Tic-Tac-Toe game. This project, crafted with Python and Tkinter, delivers an engaging player versus computer experience with a sleek graphical user interface.
https://github.com/mmansy19/x-o-game

messagebox oops-in-python python random tkinter

Last synced: about 1 month ago
JSON representation

Welcome to Professional-TicTacToe, a polished and feature-rich implementation of the classic Tic-Tac-Toe game. This project, crafted with Python and Tkinter, delivers an engaging player versus computer experience with a sleek graphical user interface.

Awesome Lists containing this project

README

        

# Tic-Tac-Toe Game

## Description

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.

## [Video Demonstration:](https://clipchamp.com/watch/E0AUm6ZKZ1N)

## Planning

### [PDF Documentation](planning/plannig_X_O_game_chatgpt.pdf)

![Tic-Tac-Toe](planning/plannig_X_O_game.png)

## Features

- 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.

## Getting Started

1. Clone the repository:

```bash
git clone https://github.com/MMansy19/X-O-Game.git
```

2. Navigate to the project directory:

```bash
cd tic-tac-toe
```

3. Run the game:

```bash
python tic_tac_toe.py
```

## How to Play

- 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.

## Screenshots

### X Wins
![X Wins](images/X_wins.jpg)

### O Wins
![O Wins](images/O_wins.jpg)

### Draw Announcement

![Draw](images/tie.jpg)

## Author

- Mahmoud Mansy

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## Acknowledgments

- Thanks to the Tkinter library for providing a simple and powerful GUI framework for Python.
- Special thanks to [OpenAI](https://www.openai.com/) for inspiring the project.

---

**X-O** - A Tic-Tac-Toe Game by Mahmoud Mansy ([GitHub](https://github.com/MMansy19))