From 4f021cab3b87ac2d2e8214a03750945ec184e6ca Mon Sep 17 00:00:00 2001 From: Daniel Monroe Date: Sun, 18 May 2025 14:53:15 -0700 Subject: [PATCH] Simplify allNode term in prior countermove Passed simplification STC LLR: 2.96 (-2.94,2.94) <-1.75,0.25> Total: 53632 W: 14008 L: 13805 D: 25819 Ptnml(0-2): 136, 6253, 13869, 6388, 170 https://tests.stockfishchess.org/tests/view/6828f2b26ec7634154f99b5e Passed simplification LTC LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 82482 W: 21202 L: 21045 D: 40235 Ptnml(0-2): 37, 8986, 23052, 9115, 51 https://tests.stockfishchess.org/tests/view/6829010a6ec7634154f99db3 closes https://github.com/official-stockfish/Stockfish/pull/6068 Bench: 2302782 --- src/search.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index f5935818..775aacef 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1451,10 +1451,9 @@ moves_loop: // When in check, search starts here // Bonus for prior quiet countermove that caused the fail low else if (!priorCapture && prevSq != SQ_NONE) { - int bonusScale = -324; + int bonusScale = -302; bonusScale += std::min(-(ss - 1)->statScore / 103, 323); bonusScale += std::min(73 * depth, 531); - bonusScale += 33 * !allNode; bonusScale += 174 * ((ss - 1)->moveCount > 8); bonusScale += 90 * (ss->cutoffCnt <= 3); bonusScale += 144 * (!ss->inCheck && bestValue <= ss->staticEval - 104); @@ -2245,4 +2244,4 @@ bool RootMove::extract_ponder_from_tt(const TranspositionTable& tt, Position& po } -} // namespace Stockfish +} // namespace Stockfish \ No newline at end of file