From 7fa7a36dc66792749eea2f1a24953ba27be19648 Mon Sep 17 00:00:00 2001 From: Daniel Monroe Date: Sun, 17 Aug 2025 17:09:09 -0400 Subject: [PATCH] Remove upper bound in see margin Passed simplification STC LLR: 2.93 (-2.94,2.94) <-1.75,0.25> Total: 99840 W: 25965 L: 25815 D: 48060 Ptnml(0-2): 326, 11708, 25688, 11886, 312 https://tests.stockfishchess.org/tests/view/68a24504b6fb3300203bbdae Passed simplification LTC LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 248388 W: 63544 L: 63556 D: 121288 Ptnml(0-2): 125, 27132, 69709, 27086, 142 https://tests.stockfishchess.org/tests/view/68a24f3bb6fb3300203bbdee closes https://github.com/official-stockfish/Stockfish/pull/6250 Bench: 2432765 --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index 47409b3a8..aafc33789 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1049,7 +1049,7 @@ moves_loop: // When in check, search starts here } // SEE based pruning for captures and checks - int margin = std::clamp(157 * depth + captHist / 29, 0, 279 * depth); + int margin = std::max(157 * depth + captHist / 29, 0); if (!pos.see_ge(move, -margin)) { bool mayStalemateTrap =