How redmvv/tic-tac-toe works
This is a Windows console game offering two local, two-player modes: Fill (best-of-three tic-tac-toe) and Slide (players move pieces as play continues). The user selects a mode, enters player names and a mark, then plays through numbered board cells until a win or match result is displayed. The graph separates mode setup, turn handling, win checks, shared player state, and console UI. Source excerpts establish the main runtime calls; no README capability description is available.
Main entry points: fill.cpp Fill rounds · slide.cpp Slide turns · main.cpp Program menu · player.hpp Player state
Components 15
Application entry
- Program menu
main.cpp
Fill mode
- Fill setup
fill.cpp - Fill rounds
fill.cpp - Fill move input
fill.cpp - Fill win check
fill.cpp
Slide mode
- Slide setup
slide.cpp - Slide turns
slide.cpp - Slide move input
slide.cpp - Slide win check
slide.cpp
Shared game support
- Menu UI
ui.cpp - Player state
player.hpp - Board renderer
ui.cpp - Board reset
ui.cpp - Console helpers
ui.cpp
Other components
- Player
Connections 25
- Player → Program menu: chooses mode
main.cpp - Program menu → Fill setup: starts Fill
main.cpp - Program menu → Slide setup: starts Slide
main.cpp - Program menu → Menu UI: invalid input
main.cpp - Menu UI → Fill setup: starts Fill
ui.cpp - Menu UI → Slide setup: starts Slide
ui.cpp - Fill setup → Fill rounds: starts rounds
fill.cpp - Fill rounds → Fill move input: gets move
fill.cpp - Fill rounds → Fill win check: checks win
fill.cpp - Fill setup → Player state: sets players
fill.cpp - Fill rounds → Player state: updates state
fill.cpp - Fill move input → Board renderer: redraws board
fill.cpp - Fill rounds → Board renderer: renders board
fill.cpp - Fill rounds → Board reset: resets board
fill.cpp - Fill setup → Console helpers: formats display
fill.cpp - Slide setup → Slide turns: starts play
slide.cpp - Slide turns → Slide move input: gets move
slide.cpp - Slide turns → Slide win check: checks win
slide.cpp - Slide setup → Player state: sets players
slide.cpp - Slide turns → Player state: updates state
slide.cpp - Slide move input → Board renderer: redraws board
slide.cpp - Slide turns → Board renderer: renders board
slide.cpp - Slide setup → Console helpers: formats display
slide.cpp - Player → Fill move input: enters moves
fill.cpp - Player → Slide move input: enters moves
slide.cpp