Skip to content

Text-based version of the popular game Tic-Tac-Toe

Notifications You must be signed in to change notification settings

dangalansky/Tic-Tac-Toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

Tic-Tac-Toe

Text-based version of the popular game Tic-Tac-Toe.

I decided to keep it simple and use this as an exercise in computer-gaming logic over anything else.

Thus, the board is depicted as a series of 9 dashes instead of the classic squares.

Users must choose number 1-9 to pick a "square" to place their mark.

The function random.randint() was used to choose whether X or O goes first.

A scoreboard keeps track of the score over multiple games. This resets once the code is terminated.

At the end of each match, the user may choose whether to play another game or not.

Enjoy!

About

Text-based version of the popular game Tic-Tac-Toe

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages