Skip to content

Commit

Permalink
Simplify shallow depth pruning
Browse files Browse the repository at this point in the history
  • Loading branch information
ianfab committed Feb 6, 2021
1 parent b4a1738 commit f0cc187
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/search.cpp
Expand Up @@ -1120,7 +1120,7 @@ namespace {
// Reduced depth of the next LMR search
int lmrDepth = std::max(newDepth - reduction(improving, depth, moveCount), 0);

if (pos.must_capture() && (captureOrPromotion || givesCheck || pos.attackers_to(to_sq(move), ~us)))
if (pos.must_capture() && (captureOrPromotion || givesCheck))
{}
else

Expand Down

0 comments on commit f0cc187

Please sign in to comment.