io-chess
UCI chess engine
Loading...
Searching...
No Matches
TablebaseFallback Namespace Reference

Functions

std::optional< MoveprobeRoot (Board &root, IEvaluator &evalCtx, std::shared_ptr< SearchSharedData > &shared, const InfoCallback &infoCallback)
 Probes the tablebase at the root node.

Function Documentation

◆ probeRoot()

std::optional< Move > TablebaseFallback::probeRoot ( Board & root,
IEvaluator & evalCtx,
std::shared_ptr< SearchSharedData > & shared,
const InfoCallback & infoCallback )

Probes the tablebase at the root node.

If a tablebase move is found and verified (including falling back to WDL if DTZ is missing), it prints info strings, optionally calls the infoCallback, sets shared->stop to true, and returns the best move.

Parameters
rootThe root board position.
evalCtxThe active evaluator context.
sharedShared data across search threads (for stop flags).
infoCallbackCallback to emit UCI info strings.
Returns
std::optional<Move> The best tablebase move, or std::nullopt if normal search should proceed.
Here is the call graph for this function:
Here is the caller graph for this function: