Tic-Tac-Toe (TylerPear)
A two-player console Tic-Tac-Toe game. Players enter moves using position codes (TL, TM, TR, ML, MM, MR, BL, BM, BR) and the board is redrawn after every turn until someone wins or the game ends in a cat's game.
Example
KEY: TL = Top Left, TM = Top Middle, TR = Top Right
ML = Middle Left, MM = Middle Middle, MR = Middle Right
BL = Bottom Left, BM = Bottom Middle, BR = Bottom Right
Player O, Type Your Move: MM
O | |
___.___.__
| |
___.___.__
| |
KEY: TL = Top Left, ...
Player X, Type Your Move: TL
X| O |
___.___.__
| |
___.___.__
| |
...
Congrats! X Wins!
How to run on localhost
python main.py
Dependencies
Standard library only.