Skip to content

Hamed-Gharghi/Tic-Toc-Toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 game_window2 game_window3

Installation

  1. Clone the repository:
git clone https://github.com/RezaGooner/Tic-Toc-Toe.git
cd Tic-Toc-Toe
  1. 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 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

Acknowledgements

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