A simple terminal-based Tic-Tac-Toe game built in Python.
- Play against another player in the terminal
- Displays the board in a grid layout
- Detects wins and draws
- Lets players quit the game at any time by entering q
- Python 3
- The
tabulatepackage
Install the required package with:
pip install tabulateFrom the project folder, run:
python main.py- Enter a row number (0, 1, or 2)
- Enter a column number (0, 1, or 2)
- Players take turns placing X and O
- Enter
qfor either input to end the game
The game board is shown as a 3x3 grid with rows labeled R0, R1, R2 and columns labeled C0, C1, C2.