Skip to content

obol89/tictactoe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe

A terminal-based Tic Tac Toe game written in Python.

Features

  • 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 q or Ctrl+C

Requirements

Python 3.6+ and a terminal with ANSI color support.

Usage

python tictactoe.py

Board Layout

Positions correspond to a numpad layout:

 7 | 8 | 9
---+---+---
 4 | 5 | 6
---+---+---
 1 | 2 | 3

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages