How kahlaa-majid/chess--game works
This is a small, interactive chess program. The user enters coordinate-notation moves; the game loop parses and validates each move, checks king safety, updates the board and move history, and displays the position and any check. Move legality is split between piece-specific rules and attack detection. All behavior is in vm08.py; edges reflect calls visible in the excerpt.
Main entry points: vm08.py Game loop
Components 9
Other components
- Player
- Game loop
vm08.py - Board state
vm08.py - Move parser
vm08.py - Move dispatcher
vm08.py - Piece rules
vm08.py - Path and target
vm08.py - King safety
vm08.py - Console output
Connections 9
- Player → Game loop: enters moves
vm08.py - Game loop → Board state: creates and updates
vm08.py - Game loop → Move parser: parses input
vm08.py - Game loop → Move dispatcher: validates moves
vm08.py - Game loop → King safety: checks kings
vm08.py - Game loop → Console output: prints board and messages
vm08.py - Move dispatcher → Piece rules: dispatches by piece
vm08.py - Piece rules → Path and target: checks path and target
vm08.py - King safety → Move dispatcher: tests attacks
vm08.py