io-chess
UCI chess engine
Loading...
Searching...
No Matches
Tablebase.cpp File Reference

Missing description. More...

#include "Tablebase.h"
#include "../../external/fathom/src/tbprobe.h"
#include <cstring>
#include <iostream>
Include dependency graph for Tablebase.cpp:

Namespaces

namespace  Tablebase

Functions

bool Tablebase::init (const std::string &path)
 Initializes tablebases with the given path.
bool Tablebase::available (const Board &board)
 Checks if a position is within the tablebase piece limits.
std::optional< WDLTablebase::probeWDL (const Board &board)
 Probes the Win-Draw-Loss (WDL) table.
std::optional< std::tuple< Move, WDL, int > > Tablebase::probeRoot (const Board &board)
 Probes the Distance-to-Zero (DTZ) table for root moves.
int Tablebase::wdlToScore (WDL wdl, int mate_ply)
 Converts a WDL result to a centipawn score for search evaluation.
int Tablebase::maxPieces ()
 Gets the maximum number of pieces supported by the loaded tablebases.
bool Tablebase::isInitialized ()
 Checks if tablebases have been successfully initialized.

Variables

static bool Tablebase::initialized_ = false
static int Tablebase::maxPieces_ = 0

Detailed Description

Missing description.