Extending a C# Chess Engine with King Safety and Material-Based AI
Extended a tutorial-based C# and WPF chess application with independently developed king-safety validation, castling rules, captured-piece tracking, and a computer-controlled opponent.
TL;DR
- Problem: The guided implementation needed stronger rule enforcement and a playable single-player experience
- Solution: Added board-copy simulation, king-safety filtering, castling validation, captured-piece tracking, and a material-scoring Black AI
- Impact: Produced a clearer demonstration of C# architecture, game-state reasoning, and desktop UI integration
Technical Leadership
- Kept chess rules in the ChessLogic project and presentation concerns in ChessUI rather than embedding engine behavior in event handlers.
- Used copied board states to validate candidate moves without mutating the active game.
- Designed the computer opponent to consume the same legal-move pipeline used by the human-facing game flow.
