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
- Host: GitHub
- URL: https://github.com/hamed-gharghi/tic-toc-toe
- Owner: Hamed-Gharghi
- License: mit
- Created: 2024-07-31T18:22:09.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-05T16:33:30.000Z (about 1 year ago)
- Last Synced: 2025-08-11T05:34:56.418Z (10 months ago)
- Topics: gui, gui-application, pyqt5, python, tic-tac-toe, tic-tac-toe-python, tictactoe-game
- Language: HTML
- Homepage:
- Size: 44.1 MB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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



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