Skip to content

Latest commit

 

History

History
 
 

tic_tac_toe

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Tic-Tac-Toe game

Rules

  1. The game is played on a 3x3 grid.
  2. Two players take turns marking a square with their respective symbols (X or O).
  3. The first player to get three of their symbols in a row (horizontally, vertically, or diagonally) wins the game.
  4. If all squares are filled and no player has won, the game ends in a draw.

How to play

  1. Fork the repo by clicking the fork logo the on top right
  2. Clone the repo git clone [email protected]:AseanK/beginner-python-games.git
  3. Head to the 'tic_tac_toe' folder
  4. Run the file using python command python tic_tac_toe.py
  5. Follow the prompts in the console to play the game. Input the row and column numbers to place your symbol on the grid.

Have fun playing Tic-Tac-Toe!