Skip to content

adel-alaa-dp/TicTacToe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Tic Tac Toe Game

This is a simple implementation of the classic game of Tic Tac Toe, also known as Noughts and Crosses. The game is played on a 3x3 grid where two players take turns marking either an 'X' or an 'O' in an empty cell of the grid. The first player to get three of their marks in a row (horizontally, vertically, or diagonally) wins the game. If all the cells are filled and no player has won, then the game is a draw.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Python 3.x tkinter (a Python GUI library)

Installing

  • Clone the repository to your local machine:
git clone https://github.com/adel-alaa-dp/tic-tac-toe.git

Install the prerequisites:

pip install tkinter

Running the game

  • Navigate to the root directory of the project:
cd tic-tac-toe
  • Run the game:
python tic_tac_toe.py

Instructions

Click on an empty cell on the grid to mark it with your symbol ('X' or 'O'). Try to get three of your symbols in a row (horizontally, vertically, or diagonally) before your opponent does. If a player gets three in a row, they win the game. If all cells are filled and no player has won, the game is a draw.

Authors

Acknowledgments

This project was inspired by the classic game of Tic Tac Toe. Thanks to the tkinter library for providing an easy way to create a GUI for the game.

About

Tic Tac Toe Game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages