From c99eb8ef323dde5eafc2286590231e3d1594c9a3 Mon Sep 17 00:00:00 2001 From: FauziAkram Date: Sun, 24 Aug 2025 14:02:03 +0300 Subject: [PATCH] Remove cap from a bonusScale formula Passed STC: LLR: 2.93 (-2.94,2.94) <-1.75,0.25> Total: 127264 W: 33159 L: 33042 D: 61063 Ptnml(0-2): 336, 14509, 33866, 14544, 377 https://tests.stockfishchess.org/tests/view/68a63fccb6fb3300203bc818 Passed LTC: LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 469512 W: 120094 L: 120331 D: 229087 Ptnml(0-2): 238, 51317, 131885, 51076, 240 https://tests.stockfishchess.org/tests/view/68a8d867b6fb3300203bcab5 closes https://github.com/official-stockfish/Stockfish/pull/6260 Bench: 2433974 --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index 40e8ef7cf..7704d530e 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1405,7 +1405,7 @@ moves_loop: // When in check, search starts here else if (!priorCapture && prevSq != SQ_NONE) { int bonusScale = -228; - bonusScale += std::min(-(ss - 1)->statScore / 104, 322); + bonusScale -= (ss - 1)->statScore / 104; bonusScale += std::min(63 * depth, 508); bonusScale += 184 * ((ss - 1)->moveCount > 8); bonusScale += 143 * (!ss->inCheck && bestValue <= ss->staticEval - 92);