Skip to content

Commit 85403a8

Browse files
TarasVukDisservin
authored andcommitted
Skip LMR for 2nd move at the root only
This patch reverts commit by Vizvezdenec: 27139de Passed STC: https://tests.stockfishchess.org/tests/view/65660b4a136acbc57354f13d LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 301952 W: 76271 L: 76344 D: 149337 Ptnml(0-2): 1053, 36293, 76348, 36238, 1044 Passed LTC: https://tests.stockfishchess.org/tests/view/656738ab136acbc573550e39 LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 25050 W: 6283 L: 6063 D: 12704 Ptnml(0-2): 10, 2756, 6775, 2972, 12 closes #4895 Bench: 1722961
1 parent 7dc40ac commit 85403a8

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
@@ -1171,7 +1171,7 @@ Value search(Position& pos, Stack* ss, Value alpha, Value beta, Depth depth, boo
11711171
// We use various heuristics for the sons of a node after the first son has
11721172
// been searched. In general, we would like to reduce them, but there are many
11731173
// cases where we extend a son if it has good chances to be "interesting".
1174-
if (depth >= 2 && moveCount > 1 + (PvNode && ss->ply <= 1)
1174+
if (depth >= 2 && moveCount > 1 + rootNode
11751175
&& (!ss->ttPv || !capture || (cutNode && (ss - 1)->moveCount > 1)))
11761176
{
11771177
// In general we want to cap the LMR depth search at newDepth, but when

0 commit comments

Comments
 (0)