DEV Community

Cover image for Command Prompt Tic Tac Toe
mjryancoding
mjryancoding

Posted on

Command Prompt Tic Tac Toe

First proper Python program I have written which I am excited to share!

The code is basically just a single list with 9 values for each of the available spaces. Players are prompted for an input which is taken and checked; to see if the space is available and the input is correct, and then the board is checked to see if there is a winning combination. The process repeats itself until the game is won or the player types 'exit'.

Link to code:
https://github.com/mjryancoding/Command---Tic-Tac-Toe

Image description
Image description

Top comments (0)