feat: minimal MCTS engine with UCI

Bitboard board with fancy magics and fully legal move generation, checked
by a perft suite. PUCT search over a node arena with FPU reduction and
in-tree draw detection. Hand-written value (eval + quiescence) and
heuristic policy stand in until the network is trained. UCI loop with a
search thread, OpenBench-compatible bench and Makefile.

Bench: 546127

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rektdieandclaude committed 2026-11-15 00:31:20 +01:00
commit d3044c0b88
19 files changed
+1997

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
#pragma once
#include "position.h"
namespace rigby {
u64 perft(const Position& pos, int depth);
// Prints the node count of every root move, then the total.
void perft_divide(const Position& pos, int depth);
// Runs the standard perft positions; returns true when every count matches.
bool perft_suite(int max_depth);
} // namespace rigby