How codevix26/codevix-tic-tac-toe works
Codevix Tic-Tac-Toe is an interactive terminal game. A player starts a session and enters moves; the CLI controller coordinates board state, asks the heuristic bot for its turn, and renders each frame and the outcome. The board handles move availability and win/draw checks, while input validation and terminal rendering are separate UI responsibilities. The README documents replay and graceful interruption; those behaviors are part of the controller and input flow. Relationships shown are supported by the README or sampled source; no unsampled modules are assumed.
Main entry points: index.ts Game Loop · Board.ts Board State · input.ts Move Input · helpers.ts Bot Delay
Components 7
Game Logic
- Board State
src/core/Board.ts - Bot Strategy
src/core/Bot.ts
Terminal UI
- Move Input
src/ui/input.ts - Board Renderer
src/ui/render.ts
Other components
- Player
Connections 8
- Player → Game Loop: starts game
README.md - Game Loop → Board State: creates and updates
src/index.ts - Game Loop → Board State: checks outcome
src/index.ts - Game Loop → Board Renderer: renders state
src/index.ts - Game Loop → Move Input: requests move
src/index.ts - Player → Move Input: enters move
src/ui/input.ts - Game Loop → Bot Strategy: chooses move
src/index.ts - Game Loop → Bot Delay: waits before turn
src/index.ts