From e7a4708ad558da49f88c8c72aed8c9290fef8d05 Mon Sep 17 00:00:00 2001 From: Daniel Monroe Date: Tue, 7 Oct 2025 18:25:08 -0400 Subject: [PATCH] Remove condition in qsearch Instead of skipping non-captures when pawn history is exceptionally high, skip all non-captures Passed non-regression STC LLR: 2.96 (-2.94,2.94) <-1.75,0.25> Total: 38016 W: 10018 L: 9795 D: 18203 Ptnml(0-2): 155, 4346, 9755, 4625, 127 https://tests.stockfishchess.org/tests/view/68e43d4aa017f472e763db2e Passed rebased non-regression LTC LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 96048 W: 24854 L: 24710 D: 46484 Ptnml(0-2): 47, 10504, 26780, 10644, 49 https://tests.stockfishchess.org/tests/view/68e59352a017f472e763dcf9 closes https://github.com/official-stockfish/Stockfish/pull/6355 bench 2343840 --- AUTHORS | 2 +- src/search.cpp | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/AUTHORS b/AUTHORS index 8d57062cc..4729afeab 100644 --- a/AUTHORS +++ b/AUTHORS @@ -62,7 +62,7 @@ CSTENTOR Dale Weiler (graphitemaster) Daniel Axtens (daxtens) Daniel Dugovic (ddugovic) -Daniel Monroe (Ergodice) +Daniel Monroe (daniel-monroe) Daniel Samek (DanSamek) Dan Schmidt (dfannius) Dariusz Orzechowski (dorzechowski) diff --git a/src/search.cpp b/src/search.cpp index 8dcdd5ed7..fa2355130 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1634,9 +1634,8 @@ Value Search::Worker::qsearch(Position& pos, Stack* ss, Value alpha, Value beta) } } - // Continuation history based pruning - if (!capture - && pawnHistory[pawn_history_index(pos)][pos.moved_piece(move)][move.to_sq()] < 7300) + // Skip non-captures + if (!capture) continue; // Do not search moves with bad enough SEE values