A terminal-based Tic Tac Toe game written in Python.
- Two-player and single-player (vs Computer) modes
- AI opponent with strategic play (win, block, center, corner, edge priority)
- Color-coded markers (X in red, O in blue) and highlighted winning line
- Available positions shown as dimmed numbers on the board
- Move counter and persistent scoreboard across games
- Quit mid-game with
qorCtrl+C
Python 3.6+ and a terminal with ANSI color support.
python tictactoe.pyPositions correspond to a numpad layout:
7 | 8 | 9
---+---+---
4 | 5 | 6
---+---+---
1 | 2 | 3