Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Tweak shallow depth pruning
  • Loading branch information
ianfab committed Feb 8, 2021
1 parent 610e292 commit 41b6f5b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/search.cpp
Expand Up @@ -1111,6 +1111,7 @@ namespace {
// Step 12. Pruning at shallow depth (~200 Elo)
if ( !rootNode
&& (pos.non_pawn_material(us) || pos.count<ALL_PIECES>(us) == pos.count<PAWN>(us))
&& !(pos.must_capture() && pos.attackers_to(to_sq(move), ~us))
&& bestValue > VALUE_TB_LOSS_IN_MAX_PLY)
{
// Skip quiet moves if movecount exceeds our FutilityMoveCount threshold
Expand All @@ -1120,10 +1121,6 @@ namespace {
// Reduced depth of the next LMR search
int lmrDepth = std::max(newDepth - reduction(improving, depth, moveCount), 0);

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

if ( captureOrPromotion
|| givesCheck)
{
Expand Down

0 comments on commit 41b6f5b

Please sign in to comment.