Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

readme.md

Tic-Tac-Toe Game

This is a simple terminal-based Tic-Tac-Toe game written in Python. Two players take turns to play, and the game will display the winner or declare a tie if all spots on the board are filled.

How to Play

  • Players take turns entering their moves.
  • The board has three rows and three columns, and each move is made by entering the row and column number (1, 2, or 3) where you want to place your mark (X or O).
  • The game checks if a player has won by filling a row, column, or diagonal with their mark.
  • If all the spots on the board are filled and no player has won, the game declares a tie.

How to Run the Game

  1. Install Python on your system if you haven't already. You can download Python from the here.

  2. Clone or download this repository to your local machine.

  3. Navigate to the directory containing the game file and run the following command in your terminal:

    python tic_tac_toe.py