Skip to content

Commit e8ffca3

Browse files
VoyagerOnesnicolet
authored andcommitted
Tweak CMH pruning
STC: (yellow) LLR: -2.94 (-2.94,2.94) [0.00,5.00] Total: 48919 W: 10625 L: 10517 D: 27777 http://tests.stockfishchess.org/tests/view/5c07e6a20ebc5902bcee7395 LTC: LLR: 2.96 (-2.94,2.94) [0.00,5.00] Total: 50360 W: 8424 L: 8102 D: 33834 http://tests.stockfishchess.org/tests/view/5c0812450ebc5902bcee76f4 Bench: 3775064
1 parent 4e2e475 commit e8ffca3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/search.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,7 @@ namespace {
973973
int lmrDepth = std::max(newDepth - reduction<PvNode>(improving, depth, moveCount), DEPTH_ZERO) / ONE_PLY;
974974

975975
// Countermoves based pruning (~20 Elo)
976-
if ( lmrDepth < 3 + ((ss-1)->statScore > 0)
976+
if ( lmrDepth < 3 + ((ss-1)->statScore > 0 || (ss-1)->moveCount == 1)
977977
&& (*contHist[0])[movedPiece][to_sq(move)] < CounterMovePruneThreshold
978978
&& (*contHist[1])[movedPiece][to_sq(move)] < CounterMovePruneThreshold)
979979
continue;

0 commit comments

Comments
 (0)