How aarende/mini-chess works
MiniChess is a standalone Qt desktop chess game. Players choose a standard or custom setup, make moves on the board, and can pause, save, resume, or review a game. The documented workflow includes setup editing and validation, rule-checked play, and end-of-game results; setup and game files preserve different data. The excerpts show the main window coordinating the engine, board view, timers, and file dialogs. Save/load paths are visible, but unsampled handlers and UI wiring limit confidence about some details.
Main entry points: mainwindow.cpp Main window · chessgame.cpp Game state and rules · chessboardview.cpp Board view · mainwindow.ui Game interface
Components 10
Game coordination
- Application entry
main.cpp - Main window
mainwindow.cpp
Chess rules
- Game state and rules
chessgame.cpp - Piece model
chessdata.h
Board and interface
- Board view
chessboardview.cpp - Game interface
mainwindow.ui
Saved games
- Setup files
mainwindow.cpp - Game files
mainwindow.cpp
Other components
- Player
- Local files
Connections 13
- Player → Game interface: uses
- Application entry → Main window: creates
- Main window → Game interface: controls
- Main window → Board view: updates
- Board view → Main window: emits clicks
- Main window → Game state and rules: requests moves
- Main window → Game state and rules: executes moves
- Main window → Game state and rules: checks results
- Game state and rules → Piece model: uses pieces
- Main window → Setup files: writes or reads
- Main window → Game files: writes or reads
- Setup files → Local files: stored in
- Game files → Local files: stored in