Repository navigation
Roxie v0.6.4
Roxie v0.6.4
Roxie v0.6.4 brings major search enhancements, SIMD optimizations, staged move generation, and critical bug fixes that significantly improve search efficiency, NPS, and playing strength.
Highlights & Major Improvements
- Staged Move Generation & MovePicker: Replaced all-at-once move generation with an on-demand
MovePicker, separating tactical (gen_tactical_moves()) and quiet (gen_quiet_moves()) generation to cut down search overhead. - SIMD & NNUE Optimization: Integrated explicit SIMD instructions and packed the NNUE bias/accumulator layer (
i32→i16), yielding a noticeable bump in Nodes Per Second (NPS). - Advanced Search Techniques: Introduced Singular Extensions, ProbCut, and re-enabled Late Move Pruning (LMP) backed by
EvalHistory. - Critical Bug Fixes: Resolved a pawn move generation bug on promotion ranks and fixed Transposition Table memory resizing resets.
Full Changelog
Search & Heuristics
- Singular Extensions: Implemented singular extensions to extend search depth on forced / critical lines.
- ProbCut: Added Probabilistic Cutoffs to prune unpromising branches early using shallow tactical searches.
- Late Move Pruning (LMP): Re-enabled LMP with
EvalHistoryintegration to prune quiet moves late in the move list. - History Heuristics:
- Added Capture History for better tactical move ordering.
- Switched history table updates to gravity decay for more responsive scoring.
Move Generation & Picking
- MovePicker: Implemented staged move generation, yielding moves on demand (TT move → Good Captures/Promotions → Killers/Counters → Quiets → Bad Captures).
- Split Move Generation: Added dedicated
gen_tactical_moves()andgen_quiet_moves()routines. - Single-Piece Helpers: Optimized piece-specific attack and move generator helpers.
- Branching Optimizations: Reduced branching overhead across capture and quiet handling loops.
- Castling Rights: Streamlined bitwise updates for castling rights in
make_move().
NNUE & Performance
- SIMD Vectorization: Added SIMD intrinsics to accelerate accumulator and forward-pass operations.
- Layer Quantization: Reduced network bias layer representation from
i32toi16for optimal SIMD register saturation and cache footprint.
Fixes & Stability
- [Critical] Pawn Generation: Fixed quiet move generation for black pawns to properly exclude promotion squares.
- TT Preservation: Fixed a bug where
ucinewgamereset the Transposition Table size back to the default 16 MB. - Quiescence Search: Added proper 3-fold repetition and 50-move draw detection within
quiescence(). - Static Exchange Evaluation (SEE): Fixed subtle edge-case evaluation inaccuracies.
Build & Tooling
- Binary Size Optimization: Updated
Makefilecompiler and linker flags to strip unnecessary debug symbols and reduce final binary size.
Benchmark & Testing
Matchup: Roxie v0.6.4 vs Roxie v0.6.3
- Settings: 1,000 games | Time Control:
10+0.1| Hash:256 MB| Book:chess_moves.pgn(10 plies)
| Metric | Score / Result | Percentage |
|---|---|---|
| Overall Score | +723 −61 =216 | 83.1% |
| Playing White | +365 −28 =107 | 83.7% |
| Playing Black | +358 −33 =109 | 82.5% |
| Elo Difference | +276.7 ± 22.6 | LOS: 100.0% |
| Draw Ratio | 21.6% | — |
Estimated Elo Gain: ~+200 to +220 Elo
(Adjusted conservatively to account for longer CCRL time controls and tournament hash configurations).