Skip to content

Commit 9fb5832

Browse files
TarasVukvondele
authored andcommitted
Tweak late move extensions
Allow late move extensions only for PV and cut nodes. Passed STC: LLR: 2.95 (-2.94,2.94) <0.00,2.00> Total: 44512 W: 11688 L: 11355 D: 21469 Ptnml(0-2): 167, 5180, 11229, 5513, 167 https://tests.stockfishchess.org/tests/view/66c0509d4ff211be9d4ef10e Passed LTC: LLR: 2.94 (-2.94,2.94) <0.50,2.50> Total: 152970 W: 39026 L: 38466 D: 75478 Ptnml(0-2): 102, 16792, 42164, 17298, 129 https://tests.stockfishchess.org/tests/view/66c0994d21503a509c13b2b6 closes #5541 bench: 1484730
1 parent d275bf9 commit 9fb5832

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
@@ -1163,7 +1163,7 @@ Value Search::Worker::search(
11631163
// beyond the first move depth.
11641164
// To prevent problems when the max value is less than the min value,
11651165
// std::clamp has been replaced by a more robust implementation.
1166-
Depth d = std::max(1, std::min(newDepth - r, newDepth + 1));
1166+
Depth d = std::max(1, std::min(newDepth - r, newDepth + (PvNode || cutNode)));
11671167

11681168
value = -search<NonPV>(pos, ss + 1, -(alpha + 1), -alpha, d, true);
11691169

0 commit comments

Comments
 (0)