Skip to content

Commit a88a38c

Browse files
Vizvezdenecvondele
authored andcommitted
Increase reduction in case of stable best move
The idea of this patch is pretty simple - we already do more reductions for non-PV and root nodes in case of stable best move for depth > 10. This patch makes us do so if root depth if > 10 instead, which is logical since best move changes (thus instability of it) is counted at root, so it makes a lot of sense to use depth of the root. passed STC https://tests.stockfishchess.org/tests/view/5fd643271ac16912018885c5 LLR: 2.94 (-2.94,2.94) {-0.25,1.25} Total: 13232 W: 1308 L: 1169 D: 10755 Ptnml(0-2): 39, 935, 4535, 1062, 45 passed LTC https://tests.stockfishchess.org/tests/view/5fd68db11ac16912018885f0 LLR: 2.96 (-2.94,2.94) {0.25,1.25} Total: 14024 W: 565 L: 463 D: 12996 Ptnml(0-2): 3, 423, 6062, 517, 7 closes official-stockfish/Stockfish#3263 Bench: 4050630
1 parent 16adcb5 commit a88a38c

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
@@ -1188,7 +1188,7 @@ namespace {
11881188
r -= 2;
11891189

11901190
// Increase reduction at root and non-PV nodes when the best move does not change frequently
1191-
if ((rootNode || !PvNode) && depth > 10 && thisThread->bestMoveChanges <= 2)
1191+
if ((rootNode || !PvNode) && thisThread->rootDepth > 10 && thisThread->bestMoveChanges <= 2)
11921192
r++;
11931193

11941194
// More reductions for late moves if position was not in previous PV

0 commit comments

Comments
 (0)