Skip to content

Commit

Permalink
Don't filter root moves if MultiPV mode is enabled
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gcp authored and mcostalba committed Oct 22, 2017
1 parent 0dc3b09 commit 86ac504
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/search.cpp
Expand Up @@ -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)
{
Expand Down

0 comments on commit 86ac504

Please sign in to comment.