Don't filter root moves if MultiPV mode is enabled
authorGian-Carlo Pascutto <gcp@sjeng.org>
Wed, 18 Oct 2017 08:25:12 +0000 (10:25 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 22 Oct 2017 05:18:48 +0000 (07:18 +0200)
A band-aid patch to workaround current TB code
limitations with multi PV.

Hopefully this will be removed after committing the
big update of TB impementation, now under discussion.

No functional change.

src/search.cpp

index f0224d8..76afd5d 100644 (file)
@@ -1588,6 +1588,10 @@ void Tablebases::filter_root_moves(Position& pos, Search::RootMoves& rootMoves)
     ProbeDepth = Options["SyzygyProbeDepth"] * ONE_PLY;
     Cardinality = Options["SyzygyProbeLimit"];
 
+    // Don't filter any moves if the user requested analysis on multiple
+    if (Options["MultiPV"] != 1)
+        return;
+
     // Skip TB probing when no TB found: !TBLargest -> !TB::Cardinality
     if (Cardinality > MaxCardinality)
     {