From c5828c4eba9e4e3f448e8370f24804da719a5120 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sat, 3 Sep 2016 08:19:17 +0200 Subject: [PATCH 1/1] Fix syzygy with partial TB MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index c12f0862..fe450a4e 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -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; } -- 2.39.2