From d0212906bde4bea7f39357c1729f2492c6531ed3 Mon Sep 17 00:00:00 2001 From: Shawn Xu Date: Mon, 26 May 2025 00:28:18 -0700 Subject: [PATCH] Simplify stat eval history adjustment further closes https://github.com/official-stockfish/Stockfish/pull/6106 bench 2074807 --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index 670d343e..a58ac3e8 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -807,7 +807,7 @@ Value Search::Worker::search( } // Use static evaluation difference to improve quiet move ordering - if (((ss - 1)->currentMove).is_ok() && !(ss - 1)->inCheck && !priorCapture && ttData.depth <= 2) + if (((ss - 1)->currentMove).is_ok() && !(ss - 1)->inCheck && !priorCapture && !ttHit) { int bonus = std::clamp(-10 * int((ss - 1)->staticEval + ss->staticEval), -1858, 1492) + 661; thisThread->mainHistory[~us][((ss - 1)->currentMove).from_to()] << bonus * 1057 / 1024;