Skip to content

This is made using Tkinter module of python. Tic tac toe game is very easy to make and very interesting too. Hope you like it :)

License

Notifications You must be signed in to change notification settings

AakarGupta-coder/Tic-Tac-Toe-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe Game

This is a simple Tic-Tac-Toe game built using Python's tkinter library. The game allows two players to play against each other on the same device. The interface is intuitive and user-friendly, built entirely with tkinter.

Features

  • Two-player mode (Player X and Player O).
  • Displays real-time game status (whose turn it is).
  • Detects winner or draw and announces the result.
  • Easy to reset the game board for a new game.

Requirements

  • Python 3.x
  • tkinter (usually included with Python)

Installation

  1. Clone the repository:
git clone https://github.com/your-username/tic-tac-toe-tkinter.git
cd tic-tac-toe-tkinter
  1. Run the game:
python tic_tac_toe.py

How to Play

  1. Run the script and the Tic-Tac-Toe window will appear.
  2. The game is played on a 3x3 grid.
  3. Players take turns to place their mark (X or O) by clicking on the grid squares.
  4. The first player to get three of their marks in a horizontal, vertical, or diagonal row wins.
  5. If all squares are filled and no player has won, the game ends in a draw.
  6. After each game, you can reset the board by clicking the "Reset" button.
  7. To start a new game, simply click the "New Game" button.

Future Improvements

  • Add a computer opponent (AI) to play against.
  • Add a main menu and customization options (e.g., board size).

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

This is made using Tkinter module of python. Tic tac toe game is very easy to make and very interesting too. Hope you like it :)

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages