From 030b87182a7fff98b1724b857d6d40cda5d90b9f Mon Sep 17 00:00:00 2001 From: cj5716 <125858804+cj5716@users.noreply.github.com> Date: Sat, 12 Aug 2023 14:56:23 +0800 Subject: [PATCH] Do more full window searches Remove the value < beta condition for doing full window searches. As an added bonus the condition for full-window search is now much more similar to other fail-soft engines. Passed STC: LLR: 2.95 (-2.94,2.94) <-1.75,0.25> Total: 244608 W: 62286 L: 62294 D: 120028 Ptnml(0-2): 758, 28772, 63214, 28840, 720 https://tests.stockfishchess.org/tests/view/64d72d365b17f7c21c0e6675 Passed LTC: LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 311460 W: 78909 L: 78985 D: 153566 Ptnml(0-2): 129, 33959, 87656, 33831, 155 https://tests.stockfishchess.org/tests/view/64dca2265b17f7c21c0ee06c closes https://github.com/official-stockfish/Stockfish/pull/4755 Bench: 1624221 --- src/search.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index c7e6fff0..d911593c 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1211,10 +1211,9 @@ moves_loop: // When in check, search starts here value = -search(pos, ss+1, -(alpha+1), -alpha, newDepth - (r > 3), !cutNode); } - // For PV nodes only, do a full PV search on the first move or after a fail - // high (in the latter case search only if value < beta), otherwise let the - // parent node fail low with value <= alpha and try another move. - if (PvNode && (moveCount == 1 || (value > alpha && (rootNode || value < beta)))) + // For PV nodes only, do a full PV search on the first move or after a fail high, + // otherwise let the parent node fail low with value <= alpha and try another move. + if (PvNode && (moveCount == 1 || value > alpha)) { (ss+1)->pv = pv; (ss+1)->pv[0] = MOVE_NONE; -- 2.39.2