/tic-tac-toe

The tic-tac-toe game on the CLI

Primary LanguagePython

tic-tac-toe

This repo contains code that runs the tic-tac-toe game. It is written in python and meant to be played using the command line interface(CLI)

How to play (on linux)

  • You first need to download the zip file at the root of this repo, as shown below.

today

  • Extract the files, then cd into the tic-tac-toe-main directory.
  • Run the command python3 --version to check if you have python3 installed.
  • If python3 isn't installed, click here for instructions on how to install it.
  • Lastly, run the command ./tic_tac_toe.py to start playing. Enjoy!!

Sample output

image

Player 1 wins:

image

Player 2 wins:

image

Draw:

image