Skip to content
Permalink
Browse files

Return beta on NMP. Bench: 4609814

  • Loading branch information
vondele committed Nov 1, 2019
1 parent e8fca71 commit 0999187d353dcb4e1c16100209e73a796e69ceba
Showing with 2 additions and 5 deletions.
  1. +2 −5 src/search.cpp
@@ -827,12 +827,9 @@ namespace {

if (nullValue >= beta)
{
// Do not return unproven mate scores
if (nullValue >= VALUE_MATE_IN_MAX_PLY)
nullValue = beta;

if (thisThread->nmpMinPly || (abs(beta) < VALUE_KNOWN_WIN && depth < 13))
return nullValue;
return beta;

assert(!thisThread->nmpMinPly); // Recursive verification is not allowed

@@ -846,7 +843,7 @@ namespace {
thisThread->nmpMinPly = 0;

if (v >= beta)
return nullValue;
return beta;
}
}

0 comments on commit 0999187

Please sign in to comment.
You can’t perform that action at this time.