Skip to content

Commit 678d503

Browse files
xu-shawnvondele
authored andcommitted
Simplify LMR Extensions
Passed Non-regression STC: LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 236896 W: 61683 L: 61683 D: 113530 Ptnml(0-2): 730, 28057, 60901, 28003, 757 https://tests.stockfishchess.org/tests/view/68a9c20475da51a345a5a6a0 Passed Non-regression LTC: LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 73644 W: 18936 L: 18770 D: 35938 Ptnml(0-2): 33, 7951, 20685, 8123, 30 https://tests.stockfishchess.org/tests/view/68aa95c575da51a345a5a88a closes #6265 Bench: 2693376
1 parent 39c077f commit 678d503

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
@@ -1218,8 +1218,7 @@ Value Search::Worker::search(
12181218
// beyond the first move depth.
12191219
// To prevent problems when the max value is less than the min value,
12201220
// std::clamp has been replaced by a more robust implementation.
1221-
Depth d =
1222-
std::max(1, std::min(newDepth - r / 1024, newDepth + (PvNode ? 2 : 1))) + PvNode;
1221+
Depth d = std::max(1, std::min(newDepth - r / 1024, newDepth + 2)) + PvNode;
12231222

12241223
ss->reduction = newDepth - d;
12251224
value = -search<NonPV>(pos, ss + 1, -(alpha + 1), -alpha, d, true);

0 commit comments

Comments
 (0)