Skip to content

This is a simple text console-based Tic-Tac-Toe game.

Notifications You must be signed in to change notification settings

alexa-ngo/tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe Game ❌⭕❌⭕

This is a simple text console-based implementation of the Tic-Tac-Toe game.

How to Start Playing:

This game requires Python3, and we don't need any other dependencies besides the Python Standard Library.

We simply start the game with:

$ python3 main.py

Each player will be asked to enter the position they would like to put their symbol (either an 'x' or an 'o') on.

Player X will go first and then followed by Player Y.

The first row is numbered with indices 0, 1, and 2. The second row uses indices 3, 4, and 5. The last row uses indices 6, 7, and 8.

Here's an example of how the board looks like:

Player x, position of x: 6


   | o | x
 ----------
 o | x |
 ----------
 x |   |


Yeah! x got three in a row!
Thanks for playing!
------------------
Would you like to play again? (Y/N)

Yeah, it's easy as that! Have fun playing Tic-Tac-Toe! 😎 ❌⭕❌⭕

About

This is a simple text console-based Tic-Tac-Toe game.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages