|
io-chess
UCI chess engine
|
Enumerations | |
| enum class | WDL { WIN = 2 , CURSED_WIN = 1 , DRAW = 0 , BLESSED_LOSS = -1 , LOSS = -2 } |
| Tablebase probe result for Win-Draw-Loss. More... | |
Functions | |
| bool | init (const std::string &path) |
| Initializes tablebases with the given path. | |
| bool | available (const Board &board) |
| Checks if a position is within the tablebase piece limits. | |
| std::optional< WDL > | probeWDL (const Board &board) |
| Probes the Win-Draw-Loss (WDL) table. | |
| std::optional< std::tuple< Move, WDL, int > > | probeRoot (const Board &board) |
| Probes the Distance-to-Zero (DTZ) table for root moves. | |
| int | wdlToScore (WDL wdl, int mate_ply) |
| Converts a WDL result to a centipawn score for search evaluation. | |
| int | maxPieces () |
| Gets the maximum number of pieces supported by the loaded tablebases. | |
| bool | isInitialized () |
| Checks if tablebases have been successfully initialized. | |
Variables | |
| static bool | initialized_ = false |
| static int | maxPieces_ = 0 |
|
strong |
Tablebase probe result for Win-Draw-Loss.
| Enumerator | |
|---|---|
| WIN | Forced win. |
| CURSED_WIN | Win, but thwarted by the 50-move rule (draw). |
| DRAW | Forced draw. |
| BLESSED_LOSS | Loss, but saved by the 50-move rule (draw). |
| LOSS | Forced loss. |
| bool Tablebase::available | ( | const Board & | board | ) |
Checks if a position is within the tablebase piece limits.
| board | The chess board to check. |

| bool Tablebase::init | ( | const std::string & | path | ) |
Initializes tablebases with the given path.
| path | Path to the Syzygy tablebase files. |

| bool Tablebase::isInitialized | ( | ) |
Checks if tablebases have been successfully initialized.
| int Tablebase::maxPieces | ( | ) |
Gets the maximum number of pieces supported by the loaded tablebases.
Probes the Distance-to-Zero (DTZ) table for root moves.
| board | The chess board to probe. |


| int Tablebase::wdlToScore | ( | WDL | wdl, |
| int | mate_ply ) |
|
static |
|
static |