From: candirufish <38038147+candirufish@users.noreply.github.com> Date: Tue, 31 May 2022 19:52:04 +0000 (+0200) Subject: cutnode and movecount lmr extension simplification X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=653bd0817ceea2980474d76198fe527f8b84bf04;p=stockfish cutnode and movecount lmr extension simplification Passed STC https://tests.stockfishchess.org/tests/view/6294133cb0d5a7d1b780ece3 LLR: 2.94 (-2.94,2.94) <-2.25,0.25> Total: 41072 W: 11052 L: 10908 D: 19112 Ptnml(0-2): 153, 4324, 11461, 4422, 176 Passed LTC ltc: https://tests.stockfishchess.org/tests/view/62947ae6b0d5a7d1b780fe86 LLR: 2.94 (-2.94,2.94) <-2.25,0.25> Total: 102736 W: 27509 L: 27459 D: 47768 Ptnml(0-2): 98, 9734, 31669, 9754, 113 closes https://github.com/official-stockfish/Stockfish/pull/4045 Bench: 6410652 --- diff --git a/src/search.cpp b/src/search.cpp index 407cb701..8ecdbc30 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1194,8 +1194,7 @@ moves_loop: // When in check, search starts here // deeper than the first move (this may lead to hidden double extensions). int deeper = r >= -1 ? 0 : moveCount <= 4 ? 2 - : PvNode ? 1 - : cutNode && moveCount <= 8 ? 1 + : PvNode || cutNode ? 1 : 0; Depth d = std::clamp(newDepth - r, 1, newDepth + deeper);