Skip to content

CodeDebanjan/tictactoe-using-tkinter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

8 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

tictactoe-using-tkinter

##๐ŸŽฎ Tic Tac Toe Game โ€“ Python Tkinter

This is a simple and colorful Tic Tac Toe game built using Python and Tkinter. It supports two players (X and O), shows the winner correctly, and automatically resets after each game.

Screenshot 2026-01-26 041950

##โœจ Features

๐ŸŸฅ Player X in red

๐ŸŸข Player O in green

๐ŸŽฏ Correct winner detection

๐Ÿค Draw detection

๐Ÿ” Automatic board reset

๐ŸŽจ Light blue background with a clean UI

##๐Ÿ›  Requirements

Python 3.x

Tkinter (comes pre-installed with Python)

##โ–ถ๏ธ How to Run

Save the file as:

tictactoe.py

Open terminal or command prompt.

Run:

python tictactoe.py

##๐ŸŽฎ How to Play

Click on any empty box to place your mark.

Players take turns: X goes first, then O.

When a player wins, a message box shows the winner.

If the board fills up with no winner, it shows a draw.

The game resets automatically after each round.

##๐Ÿ“š What You Learn from This Project

Creating GUI apps using Tkinter

Handling button clicks

Using functions and global variables

Implementing game logic in Python

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages