Skip to content

Commit 6184d2b

Browse files
VoyagerOnesnicolet
authored andcommitted
Simplify cmh pruning
Simplify cmh pruning by removing PvNode exception STC: LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 9935 W: 2330 L: 2184 D: 5421 http://tests.stockfishchess.org/tests/view/5b587dc00ebc5902bdb88424 LTC: LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 20635 W: 3585 L: 3464 D: 13586 http://tests.stockfishchess.org/tests/view/5b58910a0ebc5902bdb885b9 Closes #1711 Bench: 4905530
1 parent 9ca014d commit 6184d2b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/search.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -935,8 +935,7 @@ namespace {
935935
int lmrDepth = std::max(newDepth - reduction<PvNode>(improving, depth, moveCount), DEPTH_ZERO) / ONE_PLY;
936936

937937
// Countermoves based pruning (~20 Elo)
938-
if ( lmrDepth < 4
939-
&& (lmrDepth < 3 || ((ss - 1)->statScore > 0 && !PvNode))
938+
if ( lmrDepth <= ((ss-1)->statScore > 0 ? 3 : 2)
940939
&& (*contHist[0])[movedPiece][to_sq(move)] < CounterMovePruneThreshold
941940
&& (*contHist[1])[movedPiece][to_sq(move)] < CounterMovePruneThreshold)
942941
continue;

0 commit comments

Comments
 (0)