How ruskpr/chess works
This repository is a C# chess library with console and Windows Forms clients, plus UDP multiplayer support. The main workflow is to select a play mode, render and interact with a board, validate moves against piece movement rules, and—when networked—exchange packets with a server that manages game state. The graph also captures Chess960 setup and AI move selection. Relationships are limited to calls or references shown in the supplied excerpts, SOURCE INDEX, or README; some application details remain unsampled.
Main entry points: Board.cs Board State · FormUDPClient.cs Network Client UI · FormLauncher.cs Mode Launcher · FormAIvsAI.cs AI Match
Components 24
Play Applications
- Mode Launcher
Applications/ChessClient/FormLauncher.cs - Desktop Play
Applications/ChessClient/FormPlayerVsPlayer.cs - AI Match
Applications/ChessClient/FormAIvsAI.cs - Console Play
Applications/ChessConsoleApp/Program.cs - Board UI Helpers
Applications/ChessClient/ChessUtils.cs
Chess Rules
- Board State
Chess.Core/Board.cs - Tiles
Chess.Core/Tile.cs - Board Coordinates
Chess.Core/BoardLocation.cs - Game and Turns
Chess.Core/Game.cs - Move Model
Chess.Core/Move.cs - Piece Base
Chess.Core/Piece.cs - Piece Contract
Chess.Core/IPiece.cs - Move Validation
Chess.Core/Movement.cs - Piece Rules
Chess.Core/Pieces - Chess960 Setup
Chess.Core/Chess960/Chess960Generator.cs - AI Algorithms
Chess.Core/Algorithms
UDP Multiplayer
- Network Client UI
Applications/ChessClient/FormUDPClient.cs - UDP Client
Chess.Core/UDP/UdpClient.cs - Packet Protocol
Chess.Core/UDP/Packet.cs - UDP Transport
Chess.Core/UDP/UdpBase.cs - UDP Server Listener
Chess.Core/UDP/UdpListener.cs - Server Application
Applications/ChessServer/Program.cs - Network Players
Chess.Core/UDP/Player.cs
Other components
- Player
Connections 34
- Player → Mode Launcher: chooses mode
README.md - Mode Launcher → Desktop Play: opens
Applications/ChessClient/FormLauncher.cs - Mode Launcher → AI Match: opens
Applications/ChessClient/FormLauncher.cs - Mode Launcher → Network Client UI: opens
Applications/ChessClient/FormLauncher.cs - Player → Desktop Play: plays match
README.md - Player → Console Play: enters moves
README.md - Desktop Play → Board UI Helpers: renders board
Applications/ChessClient/FormPlayerVsPlayer.cs - AI Match → Board UI Helpers: renders board
Applications/ChessClient/FormAIvsAI.cs - Network Client UI → Board UI Helpers: renders board
Applications/ChessClient/FormUDPClient.cs - Desktop Play → Board State: uses state
Applications/ChessClient/FormPlayerVsPlayer.cs - Console Play → Board State: uses state
Applications/ChessConsoleApp/Program.cs - AI Match → Board State: uses state
Applications/ChessClient/FormAIvsAI.cs - AI Match → AI Algorithms: selects moves
Applications/ChessClient/FormAIvsAI.cs - Board UI Helpers → Board State: reads positions
Applications/ChessClient/ChessUtils.cs - Board State → Tiles: stores pieces
Chess.Core/Board.cs - Board State → Piece Contract: queries pieces
Chess.Core/Board.cs - Board State → Move Model: generates moves
Chess.Core/Board.cs - Board State → Chess960 Setup: creates setup
Chess.Core/Board.cs - Piece Base → Piece Contract: implements
Chess.Core/Piece.cs - Piece Base → Board Coordinates: tracks position
Chess.Core/Piece.cs - Piece Rules → Piece Base: extends
Chess.Core/Pieces/King.cs - Piece Rules → Move Validation: requests legal moves
Chess.Core/Pieces/King.cs - Move Validation → Board State: checks positions
Chess.Core/Movement.cs - Game and Turns → Board State: holds state
Chess.Core/Game.cs - Network Client UI → UDP Client: sends packets
Applications/ChessClient/FormUDPClient.cs - Network Client UI → Game and Turns: reads game update
Applications/ChessClient/FormUDPClient.cs - UDP Client → Packet Protocol: serializes packets
Chess.Core/UDP/UdpClient.cs - UDP Client → UDP Transport: inherits transport
Chess.Core/UDP/UdpClient.cs - Server Application → UDP Server Listener: uses listener
Applications/ChessServer/Program.cs - Server Application → Game and Turns: manages match
Applications/ChessServer/Program.cs - Server Application → Network Players: assigns players
Applications/ChessServer/Program.cs - UDP Server Listener → Packet Protocol: handles packets
Chess.Core/UDP/UdpListener.cs - UDP Server Listener → Game and Turns: updates game
Chess.Core/UDP/UdpListener.cs - Player → Network Client UI: joins or hosts
README.md