Skip to content

Commit 3335b3a

Browse files
authored
Reduce Good Captures Less (#88) bench: 10138573
1 parent ad82397 commit 3335b3a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/search.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,7 @@ int Engine::negamax(Board &board, int depth, int alpha, int beta, int ply, bool
600600
}
601601
depthReduction += isCutNode;
602602
depthReduction -= improving;
603+
depthReduction -= !isQuietOrBadCapture;
603604

604605
depthReduction = std::clamp(depthReduction, 0, depth - 2);
605606
}

0 commit comments

Comments
 (0)