Skip to content

Commit

Permalink
Tweak formula for pruning moves losing material
Browse files Browse the repository at this point in the history
Simplify the "Prune moves with negative SEE" formula,
by removing one multiplication and subtraction operation.
  • Loading branch information
PikaCat-OuO committed Aug 7, 2023
1 parent 0779f7c commit dcbbad6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -908,8 +908,8 @@ namespace {

lmrDepth = std::max(lmrDepth, 0);

// Prune moves with negative SEE (~3 Elo)
if (!pos.see_ge(move, Value(-29 * lmrDepth * lmrDepth - 24 * lmrDepth)))
// Prune moves with negative SEE (~4 Elo)
if (!pos.see_ge(move, Value(-31 * lmrDepth * lmrDepth)))
continue;
}
}
Expand Down

0 comments on commit dcbbad6

Please sign in to comment.