This content originally appeared on DEV Community and was authored by mjryancoding
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
This content originally appeared on DEV Community and was authored by mjryancoding

mjryancoding | Sciencx (2024-08-07T00:54:18+00:00) Command Prompt Tic Tac Toe. Retrieved from https://www.scien.cx/2024/08/07/command-prompt-tic-tac-toe/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.