From d5f152b5df14bb27bbf2006f877dd9c5c51a8639 Mon Sep 17 00:00:00 2001 From: Shawn Xu Date: Tue, 2 Sep 2025 17:15:22 -0700 Subject: [PATCH] Reintroduce #6259 Reintroduces af181d9, which no longer regresses on matetrack after #6286 Using ./stockfish on matetrack.epd with --nodes 1000000 Engine ID: Stockfish dev-20250902-adfddd2c Total FENs: 6554 Found mates: 3490 Best mates: 2429 Passed Non-regression LTC: LLR: 2.95 (-2.94,2.94) <-1.75,0.25> Total: 37608 W: 9726 L: 9523 D: 18359 Ptnml(0-2): 16, 4001, 10578, 4182, 27 https://tests.stockfishchess.org/tests/view/68b886778f94a4e5a7fe77d9 closes https://github.com/official-stockfish/Stockfish/pull/6289 Bench: 2493363 --- src/movepick.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/movepick.cpp b/src/movepick.cpp index b4523463f..4b01beb67 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -115,9 +115,7 @@ MovePicker::MovePicker(const Position& p, Move ttm, int th, const CapturePieceTo threshold(th) { assert(!pos.checkers()); - // Removing the SEE check passes as simplification, but hurts mate finding - stage = PROBCUT_TT - + !(ttm && pos.capture_stage(ttm) && pos.pseudo_legal(ttm) && pos.see_ge(ttm, threshold)); + stage = PROBCUT_TT + !(ttm && pos.capture_stage(ttm) && pos.pseudo_legal(ttm)); } // Assigns a numerical value to each move in a list, used for sorting.