Skip to content

Commit df2f7e7

Browse files
KJE-98vondele
authored andcommitted
Decrease LMR at PV nodes with low depth.
This patch lessens the Late Move Reduction at PV nodes with low depth. Previously the affect of depth on LMR was independant of nodeType. The idea behind this patch is that at PV nodes, LMR at low depth is will miss out on potential alpha-raising moves. Passed STC: https://tests.stockfishchess.org/tests/view/625aa867d3367522c4b8965c LLR: 2.93 (-2.94,2.94) <0.00,2.50> Total: 19360 W: 5252 L: 5006 D: 9102 Ptnml(0-2): 79, 2113, 5069, 2321, 98 Passed LTC: https://tests.stockfishchess.org/tests/view/625ae844d3367522c4b8a009 LLR: 2.94 (-2.94,2.94) <0.50,3.00> Total: 39264 W: 10636 L: 10357 D: 18271 Ptnml(0-2): 18, 3928, 11473, 4183, 30 closes #3985 bench: 8129754
1 parent c25d4c4 commit df2f7e7

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ jundery
104104
Justin Blanchard (UncombedCoconut)
105105
Kelly Wilson
106106
Ken Takusagawa
107+
Kian E (KJE-98)
107108
kinderchocolate
108109
Kiran Panditrao (Krgp)
109110
Kojirion

src/search.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,6 +1173,10 @@ namespace {
11731173
if (PvNode && !ss->inCheck && abs(ss->staticEval - bestValue) > 250)
11741174
r--;
11751175

1176+
// Increase depth based reduction if PvNode
1177+
if (PvNode)
1178+
r -= 15 / ( 3 + depth );
1179+
11761180
ss->statScore = thisThread->mainHistory[us][from_to(move)]
11771181
+ (*contHist[0])[movedPiece][to_sq(move)]
11781182
+ (*contHist[1])[movedPiece][to_sq(move)]

0 commit comments

Comments
 (0)