From 402602a70d29433cdc2eda1116d4e6cc68499b02 Mon Sep 17 00:00:00 2001 From: pb00067 Date: Sat, 26 Jul 2025 17:51:20 +0200 Subject: [PATCH] Simplify static evaluation difference to move ordering logic Passed STC simplification bounds https://tests.stockfishchess.org/tests/view/686fcb091451bd6fb83082bc LLR: 2.92 (-2.94,2.94) <-1.75,0.25> Total: 762816 W: 196717 L: 197295 D: 368804 Ptnml(0-2): 2052, 90457, 196853, 90109, 1937 Passed LTC simplification bounds https://tests.stockfishchess.org/tests/view/68808d316e17e7fa3939b35d LLR: 2.95 (-2.94,2.94) <-1.75,0.25> Total: 44736 W: 11499 L: 11303 D: 21934 Ptnml(0-2): 24, 4766, 12586, 4974, 18 closes https://github.com/official-stockfish/Stockfish/pull/6176 bench: 2684407 --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index cd84eb240..27a4bea67 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -808,7 +808,7 @@ Value Search::Worker::search( } // Use static evaluation difference to improve quiet move ordering - if (((ss - 1)->currentMove).is_ok() && !(ss - 1)->inCheck && !priorCapture && !ttHit) + if (((ss - 1)->currentMove).is_ok() && !(ss - 1)->inCheck && !priorCapture) { int bonus = std::clamp(-10 * int((ss - 1)->staticEval + ss->staticEval), -1979, 1561) + 630; mainHistory[~us][((ss - 1)->currentMove).from_to()] << bonus * 935 / 1024;