How gabrielkaos/chessenginegoobc works
GOOB is a UCI-playing C chess engine with NNUE evaluation and a separate NNUE data/training toolchain. The main runtime path accepts UCI commands, searches chess positions, and reports moves and analysis. The graph also preserves move generation, tablebases, tracing, and training capabilities. Most links are based on the SOURCE INDEX’s references; unsampled implementation details are not inferred beyond those references and README statements.
Main entry points: search.c Search · uci.c UCI protocol · movegen.c Move generation · train.py NNUE training
Components 25
Engine runtime
- Engine entry
src/main.c - UCI protocol
src/uci.c - Engine initialization
src/init.c
Chess position
- Position state
src/board.c - Move generation
src/movegen.c - Attack tables
src/attacks.c - Move execution
src/makemove.c
Search and evaluation
- Search
src/search.c - Move ordering
src/movepicker.c - Position evaluation
src/evaluate.c - NNUE inference
src/nnue_loader.h - Search histories
src/history.c - Evaluation correction
src/correction.c - Transposition table
src/pvtable.c
Analysis support
- Tablebase interface
src/syzygy.c - Tablebase probing
src/tbprobe.c - Perft analysis
src/perft.c - Search tracing
src/trace.c
NNUE training
- FEN utilities
tools/nnue_project/scripts/fen_utils.py - Training data prep
tools/nnue_project/scripts/prepare_data.py - NNUE dataset
tools/nnue_project/scripts/nnue_dataset.py - NNUE model
tools/nnue_project/scripts/model.py - NNUE training
tools/nnue_project/scripts/train.py - Weight export
tools/nnue_project/scripts/export_weights.py
Other components
- UCI client
Connections 27
- UCI client → Engine entry: starts engine
README.md - Engine entry → Engine initialization: initializes
src/main.c - Engine entry → UCI protocol: dispatches commands
src/main.c - UCI protocol → Search: starts search
src/uci.c - UCI protocol → Position state: uses position
src/uci.c - UCI protocol → Perft analysis: invokes perft
src/uci.c - UCI protocol → Tablebase interface: configures tables
src/uci.c - Search → Move ordering: orders moves
src/search.c - Search → Position evaluation: evaluates positions
src/search.c - Search → Transposition table: probes table
src/search.c - Search → Move generation: generates moves
src/search.c - Search → Move execution: makes moves
src/search.c - Search → Search histories: uses histories
src/search.c - Search → Evaluation correction: uses corrections
- Search → Search tracing: records counters
- Position evaluation → NNUE inference: uses inference
- Move generation → Attack tables: queries attacks
src/movegen.c - Move generation → Position state: reads position
src/movegen.c - Move execution → Position state: updates position
- Perft analysis → Move generation: uses generation
src/perft.c - Perft analysis → Move execution: makes moves
src/perft.c - Training data prep → FEN utilities: parses FEN
tools/nnue_project/scripts/prepare_data.py - NNUE training → NNUE model: uses model
tools/nnue_project/scripts/train.py - NNUE training → NNUE dataset: loads dataset
tools/nnue_project/scripts/train.py - NNUE dataset → FEN utilities: uses encoding
tools/nnue_project/scripts/check_net.py - NNUE training → Weight export: exports weights
- Tablebase interface → Tablebase probing: uses probing