Skip to content

ru0te/tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe

A simple terminal-based Tic-Tac-Toe game built in Python.

Features

  • Play against another player in the terminal
  • Displays the board in a grid layout
  • Detects wins and draws
  • Lets players quit the game at any time by entering q

Requirements

  • Python 3
  • The tabulate package

Installation

Install the required package with:

pip install tabulate

How to Run

From the project folder, run:

python main.py

How to Play

  • Enter a row number (0, 1, or 2)
  • Enter a column number (0, 1, or 2)
  • Players take turns placing X and O
  • Enter q for either input to end the game

Example

The game board is shown as a 3x3 grid with rows labeled R0, R1, R2 and columns labeled C0, C1, C2.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages