How cauvinferrard-blip/tictactoe02 works
This is a console Tic-Tac-Toe game. The player enters moves or save/load/quit commands; the game loop validates moves, updates and displays the board, checks for a win or draw, and can persist the current board and player turn. The runtime is centered in the main source file, while board operations and save/load serialization are separate modules. The README documents save/load capability; the sampled code shows those operations using savegame.txt. The graph reflects only relationships visible in the excerpts or README.
Main entry points: tictactoeo2_main.cpp Game loop · board.cpp Board operations · file_utils.cpp Save and load · savegame.txt savegame.txt
Components 10
Game runtime
- Game loop
tictactoeo2_main.cpp - Move input
tictactoeo2_main.cpp - Move and outcome rules
tictactoeo2_main.cpp
Board model
- Board operations
board.cpp - Board interface
board.h
Save and load
- Save and load
file_utils.cpp - Game-state format
file_utils.cpp - Persistence interface
file_utils.h - savegame.txt
savegame.txt
Other components
- Player
Connections 8
- Player → Game loop: plays
README.md - Game loop → Move input: reads commands
tictactoeo2_main.cpp - Game loop → Move and outcome rules: checks and applies
tictactoeo2_main.cpp - Move and outcome rules → Board operations: reads and updates
tictactoeo2_main.cpp - Game loop → Board operations: prints board
tictactoeo2_main.cpp - Game loop → Save and load: dispatches save/load
tictactoeo2_main.cpp - Save and load → savegame.txt: reads and writes
file_utils.cpp - Game-state format → Board operations: serializes board
file_utils.cpp