DEV Community

taimankj
taimankj

Posted on

Tic-Tac-Toe.py

Try my childhood game I played in elementary with my classmates during class. This is a two player game. Play it with your friends or family. First run 'python3 file-path/tic-tac-toe.py' in the terminal. You will then be prompted to input 'x' or 'o' and press enter for whoever will go first. First player will input the corresponding number to the corresponding space and press enter. Then, the same action will be done by the next player. If the space is taken, the terminal will prompt you that space has been taken and will have to re-enter an authorized number. The game ends when either player has filled a column, row, or diagonal.

Tic Tac Toe on terminal

Tic-Tac-Toe Repository

Top comments (0)