Skip to content

Commit

Permalink
decrease if beta - alpha > 100
Browse files Browse the repository at this point in the history
  • Loading branch information
MJZ1977 committed Apr 15, 2019
1 parent 1594d15 commit 57835dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/search.cpp
Expand Up @@ -1006,6 +1006,10 @@ namespace {
if (ttPv)
r -= ONE_PLY;

// If PvNode and (beta - alpha) is too broad, decrease reduction to avoid instabilities
if (beta - alpha > Value(100))
r -= ONE_PLY;

// Decrease reduction if opponent's move count is high (~10 Elo)
if ((ss-1)->moveCount > 15)
r -= ONE_PLY;
Expand Down

0 comments on commit 57835dc

Please sign in to comment.