How reevew/chessgame works
ChessGame is a local, graphical chess application. The user workflow is to launch the game, drag a piece, see legal destinations, and drop it; Game coordinates board updates and turn changes, while Board calculates legal moves and special chess rules. The README also documents promotion, castling, en passant, and terminal win reporting. The graph reflects only relationships visible in the excerpts or README; unshown event dispatch and some rendering details are omitted.
Main entry points: Game.cpp Game controller · Board.cpp Legal moves · main.cpp Game startup
Components 9
Game interface
- Game startup
main.cpp - Game controller
Game.cpp - Piece graphics
Game.cpp - Win reporting
Game.cpp
Chess rules
- Board state
Board.cpp - Legal moves
Board.cpp - Check and attacks
Board.cpp - Special moves
Board.cpp
Other components
- Player
Connections 15
- Player → Game startup: starts game
README.md - Game startup → Game controller: runs
main.cpp - Game controller → Piece graphics: loads sprites
Game.cpp - Game controller → Board state: initializes moves
Game.cpp - Player → Game controller: drags pieces
README.md - Game controller → Legal moves: requests moves
Game.cpp - Legal moves → Board state: reads position
Board.cpp - Legal moves → Check and attacks: checks attacks
Board.cpp - Legal moves → Special moves: handles rules
Board.cpp - Game controller → Board state: updates position
Game.cpp - Game controller → Special moves: handles promotion
Game.cpp - Game controller → Special moves: moves castle rook
Game.cpp - Game controller → Special moves: removes en passant
Game.cpp - Game controller → Win reporting: reports win
README.md - Game controller → Player: highlights moves
README.md