How nfleig/chessailibrary works
ChessAILibrary is a lightweight chess implementation with AI search and position evaluation. Its principal workflow is to represent a position, generate legal chess moves and resulting positions, search candidate positions, and score them. The rules, move notation, and board state are implemented together in SimpleChess.cs; AI search is split between MTD and AlphaBeta. The README is brief, and the graph reflects only the shown source and documented capabilities; it does not infer an external application or unsampled integrations.
Main entry points: AlphaBeta.cs Alpha-Beta Search · ChessAI.cs Chess AI Engine · MTD.cs MTD Search · SimpleChess.cs Chess Position
Components 10
Chess Rules
- Chess Position
ChessAILibrary/ChessAI/SimpleChess.cs - Move Generation
ChessAILibrary/ChessAI/SimpleChess.cs - Move Notation
ChessAILibrary/ChessAI/SimpleChess.cs
AI Search
- Position Evaluation
ChessAILibrary/ChessAI/ChessAI.cs - Chess AI Engine
ChessAILibrary/ChessAI/ChessAI.cs - Alpha-Beta Search
ChessAILibrary/ChessAI/AlphaBeta.cs - MTD Search
ChessAILibrary/ChessAI/MTD.cs - Search State
ChessAILibrary/ChessAI/AIState.cs
Chess Types
- Board and Move Types
ChessAILibrary/ChessAI/ChessBoard.cs
Other components
- Library User
Connections 9
- Library User → Chess AI Engine: uses
- Chess AI Engine → Chess Position: evaluates
ChessAILibrary/ChessAI/ChessAI.cs - Chess AI Engine → Move Generation: generates positions
ChessAILibrary/ChessAI/ChessAI.cs - Alpha-Beta Search → Chess Position: checks draws
ChessAILibrary/ChessAI/AlphaBeta.cs - Alpha-Beta Search → Move Generation: generates positions
ChessAILibrary/ChessAI/AlphaBeta.cs - Alpha-Beta Search → Position Evaluation: scores leaves
ChessAILibrary/ChessAI/AlphaBeta.cs - Alpha-Beta Search → Chess AI Engine: extends
ChessAILibrary/ChessAI/AlphaBeta.cs - MTD Search → Alpha-Beta Search: runs searches
ChessAILibrary/ChessAI/MTD.cs - MTD Search → Search State: updates
ChessAILibrary/ChessAI/MTD.cs