Play Tic Tac Toe

Play, resume, inspect, or clear a terminal tic-tac-toe game with persistent user-scoped state and deterministic aggressive or defensive AI. Use when a user asks to play tic-tac-toe, supplies a board position, makes a numbered move, or wants to resume a saved match.

batteryshark bcdcd42 6 files · 19.4 KB Updated

File contents

Play Tic Tac Toe

Use bin/play-tic-tac-toe for every game operation. Read references/commands.md when translating natural-language settings or troubleshooting saved state.

Workflow

  1. Start a game with the requested marker, first player, and strategy.
  2. Relay the board and available numbered cells.
  3. For each user move, run move <1-9> and relay the updated board.
  4. Use show to resume and clear only when the user asks to discard the saved match.

Never edit the state file manually during normal play. Set TICTACTOE_STATE_FILE only when an isolated state location is needed.

batteryshark/skill-tap/tree/main/skills/entertainment/games/play-tic-tac-toe commit bcdcd420a9

Frequently asked questions

npx skillmds@latest add batteryshark/play-tic-tac-toe