From 40aeb5a4118abc100987fab13a3329863b8d45c5 Mon Sep 17 00:00:00 2001 From: FauziAkram Date: Thu, 11 Sep 2025 00:06:22 +0300 Subject: [PATCH] Simplify away conthist 0 While at it, I also added the scaler note to the Lmrdepth/history formula. Passed STC: LLR: 2.96 (-2.94,2.94) <-1.75,0.25> Total: 25376 W: 6660 L: 6423 D: 12293 Ptnml(0-2): 77, 2947, 6403, 3184, 77 https://tests.stockfishchess.org/tests/view/68c1ccf759efc3c96b610deb Passed LTC: LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 208464 W: 53371 L: 53342 D: 101751 Ptnml(0-2): 110, 22776, 58426, 22815, 105 https://tests.stockfishchess.org/tests/view/68c1d04b59efc3c96b610e13 closes https://github.com/official-stockfish/Stockfish/pull/6304 Bench: 2029296 --- src/search.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 888a8d870..13d86125a 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1067,6 +1067,7 @@ moves_loop: // When in check, search starts here history += 76 * mainHistory[us][move.from_to()] / 32; + // (*Scaler): Generally, a lower divisor scales well lmrDepth += history / 3220; Value futilityValue = ss->staticEval + 47 + 171 * !bestMove + 134 * lmrDepth @@ -1630,9 +1631,7 @@ Value Search::Worker::qsearch(Position& pos, Stack* ss, Value alpha, Value beta) // Continuation history based pruning if (!capture - && (*contHist[0])[pos.moved_piece(move)][move.to_sq()] - + pawnHistory[pawn_history_index(pos)][pos.moved_piece(move)][move.to_sq()] - <= 5475) + && pawnHistory[pawn_history_index(pos)][pos.moved_piece(move)][move.to_sq()] < 7300) continue; // Do not search moves with bad enough SEE values