ghostmkg / programming-language

You write code in any programming language you want. And push the code.
33 stars 79 forks source link

A GUI based TicTacToe Game #25

Closed UmeshIsu closed 5 days ago

UmeshIsu commented 5 days ago

This project is a simple implementation of the classic Tic-Tac-Toe game using Python's Tkinter library for the graphical user interface. The game is designed for two players, "X" and "O", who take turns marking the spaces in a 3x3 grid. The goal is to be the first player to get three of their marks in a horizontal, vertical, or diagonal row.

Features: User-friendly interface: A clean and intuitive layout using Tkinter. Real-time gameplay: Players can click on the grid to place their mark. Winner announcement: The game highlights the winning row, column, or diagonal in yellow and announces the winner. Restart functionality: A restart button allows players to start a new game without closing the window. Tie detection: The game correctly handles ties when all spaces are filled with no winner. How to Play:

Run the program. Player "X" starts the game. Players alternate turns by clicking on the grid. The game ends when a player wins or the grid is full (tie). Click "Restart" to play again. This project is ideal for beginners learning Tkinter or those who want to create simple GUI-based games in Python.