How gyatsoyt/gyatsochess works
Gyatso is a UCI-compatible chess engine. Its principal workflow is receiving a UCI search request, managing search time and threads, exploring legal moves, and returning a best move; search uses move ordering, position evaluation, and transposition data. The README also documents Chess960/DFRC, NNUE with embedded weights and SIMD acceleration, and performance-oriented search features. With no source excerpts available, relationships below are limited to those the README describes; unsampled implementation details are not inferred.
Main entry points: search.nim Search · moveorderer.nim Move Ordering · nnue.nim NNUE Network · uci.nim UCI Interface
Components 19
UCI and Timing
- UCI Interface
Gyatso/src/uci.nim - Time Manager
Gyatso/src/timeman.nim
Chess Position
- Position and Rules
Gyatso/src/board.nim - Chess Types
Gyatso/src/coretypes.nim - Move Generation
Gyatso/src/movegen.nim - Attacks and Bitboards
Gyatso/src/attacks.nim - Bitboard Operations
Gyatso/src/bitboard.nim
Search and Ordering
- Search
Gyatso/src/search.nim - Move Ordering
Gyatso/src/moveorderer.nim - Search History
Gyatso/src/history.nim - Exchange Evaluation
Gyatso/src/see.nim - Transposition Table
Gyatso/src/tt.nim - Position Hashing
Gyatso/src/zobrist.nim
Evaluation and Runtime
- Position Evaluation
Gyatso/src/evaluate.nim - NNUE Network
Gyatso/src/nnue.nim - Embedded Weights
Gyatso/Net/GyatsoNet1024.bin - SIMD Operations
Gyatso/src/simd.nim - Parallel Search
Gyatso/src/threads.nim
Other components
- UCI GUI
Connections 16
- UCI GUI → UCI Interface: sends UCI
README.md - UCI Interface → Search: starts search
README.md - Search → Time Manager: sets time limits
README.md - Search → Move Generation: searches moves
README.md - Search → Position Evaluation: evaluates positions
README.md - Search → Move Ordering: orders moves
README.md - Move Ordering → Search History: scores with history
README.md - Move Ordering → Exchange Evaluation: uses SEE
README.md - Search → Transposition Table: probes and stores
README.md - Transposition Table → Position Hashing: uses hashing
README.md - Position Evaluation → NNUE Network: uses NNUE
README.md - NNUE Network → Embedded Weights: uses embedded weights
README.md - NNUE Network → SIMD Operations: accelerates math
README.md - Search → Parallel Search: runs parallel search
README.md - Move Generation → Position and Rules: supports chess variants
README.md - Search → Position and Rules: checks draw rules
README.md