How joechrisman/ray works
Ray is a UCI chess engine: a chess GUI or user sends commands, the engine interprets positions and search requests, and returns moves and analysis. Its main runtime domains are protocol handling, board representation and move generation, evaluation, and search. Search combines move ordering and a transposition table; the README also documents perft testing as a capability. The source index identifies module references but does not expose most call sites, so several likely runtime connections are shown as unverified dashed edges rather than asserted calls.
Main entry points: Uci.c UCI command handling · Search.c Alpha-beta search · MoveGen.c Legal move generation · Position.c Position and game state
Components 15
UCI protocol
- UCI command handling
Uci.c - Runtime utilities
Utils.c
Chess state and moves
- Position and game state
Position.c - Move notation
Notation.c - Move representation
Move.c - Legal move generation
MoveGen.c - Attack tables
AttackTables.c - Bitboard operations
Bitboard.c
Position analysis
- Position evaluation
Eval.c - Perft analysis
Perft.c
Search
- Search orchestration
SearchManager.c - Alpha-beta search
Search.c - Search move ordering
MoveOrder.c - Transposition table
HashTable.c
Other components
- Chess GUI / user
Connections 14
- Chess GUI / user → UCI command handling: sends commands
README.md - UCI command handling → Position and game state: sets position
- UCI command handling → Search orchestration: starts search
- UCI command handling → Perft analysis: requests perft
- Search orchestration → Alpha-beta search: runs search
SearchManager.c - Alpha-beta search → Legal move generation: generates moves
Search.c - Alpha-beta search → Position evaluation: scores positions
Search.c - Alpha-beta search → Search move ordering: orders moves
Search.c - Alpha-beta search → Transposition table: probes and stores
Search.c - Position and game state → Move representation: applies moves
Position.c - Legal move generation → Attack tables: uses attack data
MoveGen.c - Legal move generation → Bitboard operations: uses bitboards
MoveGen.c - UCI command handling → Move notation: formats moves
Uci.c - UCI command handling → Chess GUI / user: returns analysis
README.md