mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 09:06:45 +08:00
Fix syzygy with partial TB
In case we have installed a not complete set of 6-men tables and there is 6 piece position on board, but no corresponding tablebase engine is not using any syzygy at all. Reported by Jouni Uski, fix by Peter Österlund, confirmed as a bug by Ronald de Man. bench: 7591630
This commit is contained in:
@@ -1641,7 +1641,7 @@ void Tablebases::filter_root_moves(Position& pos, Search::RootMoves& rootMoves)
|
||||
RootInTB = root_probe_wdl(pos, rootMoves, TB::Score);
|
||||
|
||||
// Only probe during search if winning
|
||||
if (TB::Score <= VALUE_DRAW)
|
||||
if (RootInTB && TB::Score <= VALUE_DRAW)
|
||||
Cardinality = 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user