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

https://github.com/hamed-gharghi/tic-toc-toe

This is a simple Tic-Toc-Toe using python and PyQt5 with GUI
https://github.com/hamed-gharghi/tic-toc-toe

gui gui-application pyqt5 python tic-tac-toe tic-tac-toe-python tictactoe-game

Last synced: 10 months ago
JSON representation

This is a simple Tic-Toc-Toe using python and PyQt5 with GUI

Awesome Lists containing this project

README

          

# Tic-Tac-Toe Game with PyQt5

A modern implementation of the classic Tic-Tac-Toe game with enhanced visuals and gameplay features.

## Features

- 🎨 **Colorful UI**:
- Pink X's and Blue O's with high visibility
- Dark theme with neon accents
- 🖥️ **Enhanced Display**:
- Large 48px symbols for better visibility
- Custom game icons
- 🎮 **Multiple Input Methods**:
- Mouse click support
- Full keyboard navigation (arrow keys + Enter/Space)
- 🏆 **Game Status Alerts**:
- Color-matched win messages (pink for X, blue for O)
- Green draw messages
- Popup alerts for game results


![game_window](https://github.com/user-attachments/assets/77ec76bb-9b80-46eb-8ae3-cdce55ea1bb1)
![game_window2](https://github.com/user-attachments/assets/1425edfb-813e-483e-a8d6-4ed60fc8feee)
![game_window3](https://github.com/user-attachments/assets/c8a982a6-7f0d-4d5a-838c-0325bca7146b)

## Installation

1. Clone the repository:
```bash
git clone https://github.com/RezaGooner/Tic-Toc-Toe.git
cd Tic-Toc-Toe
```

2. Install requirements:
```
pip install PyQt5 PyInstaller
```

## How to Run
### As Python Script
```
python Tic_Tac_Toe.py
```

As Executable (Windows)
```
pyinstaller --onefile --windowed --icon=icon.ico Tic_Tac_Toe.py
```

The executable will be created in the dist folder.

## Controls
- Mouse: Click on any empty cell

- Keyboard:

- Arrow keys to navigate

- Enter/Space to place your mark

- ESC to End the game


## License

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

## Tags

- **Python**: Python
- **PyQt5**: PyQt5, Qt
- **GUI**: Graphical User Interface
- **Tic-Tac-Toe**: Tic-Tac-Toe Game, Classic Game
- **Desktop Application**: Desktop App, Desktop Software
- **Open Source**: Open Source, MIT License
- **Game Development**: Game Development, Game Programming
- **Productivity**: Casual Gaming, Entertainment

## Keywords

- Python PyQt5
- Tic-Tac-Toe Game
- Desktop Game Application
- Modern GUI Game
- Game Programming
- Open Source Game
- Interactive Game
- PyQt5 GUI

## Authors

- **Hamed Gharghi**

- Email: [Hamedgharghi1@gmail.com](mailto:Hamedgharghi1@gmail.com)
- GitHub: [Hamed-Gharghi](https://github.com/Hamed-Gharghi)

- **RezaGooner**

- Email: [rezaasadiprogrammer@gmail.com](mailto:rezaasadiprogrammer@gmail.com)
- GitHub: [RezaGooner](https://github.com/RezaGooner)

## Acknowledgements

- PyQt5 documentation for guidance on creating the GUI.
- Qt Designer for designing the UI layout.
- Contributions and feedback from the open-source community.