How jordan73737/chess-game works
This repository is a desktop chess game: a player interacts with the WPF interface, which uses game state and chess rules to display and apply moves, then presents promotion, pause, and game-over choices. The logic covers board setup, piece move generation, special moves, legality, and game outcomes; state-string support is also present. The README gives no further capability detail. Some connections below rely on the SOURCE INDEX for read-but-unsampled files, so they are limited to relationships that file references support.
Main entry points: GameState.cs Game lifecycle · Board.cs Board state · MainWindow.xaml.cs Chess window · Pieces Piece move rules
Components 19
Desktop interface
- Chess window
Chess/ChessUI/MainWindow.xaml.cs - Piece images
Chess/ChessUI/Images.cs - Promotion menu
Chess/ChessUI/PromotionMenu.xaml.cs - Pause menu
Chess/ChessUI/PauseMenu.xaml.cs - Game-over menu
Chess/ChessUI/GameOverMenu.xaml.cs
Game state
- Game lifecycle
Chess/ChessLogic/GameState.cs - Game result
Chess/ChessLogic/Result.cs - State serialization
Chess/ChessLogic/StateString.cs - End reasons
Chess/ChessLogic/EndReason.cs
Chess rules
- Board state
Chess/ChessLogic/Board.cs - Move execution
Chess/ChessLogic/Moves - Board positions
Chess/ChessLogic/Position.cs - Directions
Chess/ChessLogic/Direction.cs - Move types
Chess/ChessLogic/MoveType.cs - Material counting
Chess/ChessLogic/Counting.cs
Piece behavior
- Piece types
Chess/ChessLogic/PieceType.cs - Piece base rules
Chess/ChessLogic/Pieces/Piece.cs - Piece move rules
Chess/ChessLogic/Pieces
Other components
- Player
Connections 26
- Player → Chess window: plays through
Chess/ChessUI/MainWindow.xaml.cs - Chess window → Game lifecycle: uses game state
Chess/ChessUI/MainWindow.xaml.cs - Chess window → Piece images: loads images
Chess/ChessUI/MainWindow.xaml.cs - Chess window → Piece move rules: uses piece rules
Chess/ChessUI/MainWindow.xaml.cs - Promotion menu → Piece images: uses images
Chess/ChessUI/PromotionMenu.xaml.cs - Pause menu → Chess window: returns options
- Game-over menu → Game lifecycle: reads game state
Chess/ChessUI/GameOverMenu.xaml.cs - Game-over menu → Game result: reads result
Chess/ChessUI/GameOverMenu.xaml.cs - Game lifecycle → Board state: uses board
Chess/ChessLogic/GameState.cs - Game lifecycle → Move execution: uses moves
Chess/ChessLogic/GameState.cs - Game lifecycle → Game result: sets result
Chess/ChessLogic/GameState.cs - Game lifecycle → State serialization: uses serialization
Chess/ChessLogic/GameState.cs - Game lifecycle → Piece base rules: uses pieces
Chess/ChessLogic/GameState.cs - Game lifecycle → Board positions: uses positions
Chess/ChessLogic/GameState.cs - Board state → Piece move rules: queries pieces
Chess/ChessLogic/Board.cs - Board state → Material counting: counts material
Chess/ChessLogic/Board.cs - Board state → Move execution: checks en passant
Chess/ChessLogic/Board.cs - Piece move rules → Piece base rules: extends base rules
Chess/ChessLogic/Pieces/Pawn.cs - Piece move rules → Move execution: creates moves
Chess/ChessLogic/Pieces/Pawn.cs - Piece move rules → Board positions: uses positions
Chess/ChessLogic/Pieces/Pawn.cs - Move execution → Board state: updates board
Chess/ChessLogic/Moves/NormalMove.cs - Move execution → Move types: uses move types
Chess/ChessLogic/Moves/Move.cs - State serialization → Board state: reads board
Chess/ChessLogic/StateString.cs - Piece base rules → Piece types: uses piece types
Chess/ChessLogic/Pieces/Piece.cs - Piece base rules → Board positions: uses positions
Chess/ChessLogic/Pieces/Piece.cs - Game result → End reasons: uses end reasons
Chess/ChessLogic/Result.cs