Skip to content

A simple 2-player Tic-Tac-Toe game in Python using Tkinter with win detection, draw check, and restart option.

Notifications You must be signed in to change notification settings

AdarshZolekar/Tic-Tac-Toe-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe Game

A simple Tic-Tac-Toe game built using Python's Tkinter library.
It allows two players to play alternately with X and O on a 3x3 grid.
The game highlights the winner's combination and also detects draws.
A Restart button is included for multiple rounds without restarting the app.


Features

  • Two-player gameplay (X vs O)
  • Win detection with green highlight
  • Draw detection
  • Restart button to reset the board
  • Clean and simple Tkinter GUI

How to Run

  1. Clone the repository:

    git clone https://github.com/AdarshZolekar/Tic-Tac-Toe-Game.git
  2. Run the script:

    • Open a terminal or command prompt.

    • Navigate to the project directory:

      cd Tic-Tac-Toe-Game
    • Run the main script:

      python Tic-Tac-Toe-Game.py
    • Follow the on-screen instructions and start playing!


Future Improvements

  • Add a scoreboard to track wins and draws

  • Add AI player mode for single-player gameplay


License

This project is open-source under the MIT License.


Contributions

Feel free to open issues or submit pull requests for improvements or bug fixes!

About

A simple 2-player Tic-Tac-Toe game in Python using Tkinter with win detection, draw check, and restart option.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages