From 09faa626210e8f72cacc35887823c4929c36a86b Mon Sep 17 00:00:00 2001 From: Shawn Xu Date: Sun, 23 Feb 2025 00:40:06 -0800 Subject: [PATCH] Simplify NMP Conditions Passed Non-regression STC: LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 142400 W: 36883 L: 36779 D: 68738 Ptnml(0-2): 467, 16804, 36571, 16874, 484 https://tests.stockfishchess.org/tests/view/67bd1898e4a8d7152b974ef1 Passed Non-regression LTC: LLR: 2.95 (-2.94,2.94) <-1.75,0.25> Total: 251868 W: 63905 L: 63920 D: 124043 Ptnml(0-2): 133, 27480, 70708, 27495, 118 https://tests.stockfishchess.org/tests/view/67bd1898e4a8d7152b974ef1 closes https://github.com/official-stockfish/Stockfish/pull/5906 Bench: 2188400 --- src/search.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 21b328fbe..89a44b930 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -846,8 +846,8 @@ Value Search::Worker::search( // Step 9. Null move search with verification search if (cutNode && (ss - 1)->currentMove != Move::null() && eval >= beta - && ss->staticEval >= beta - 21 * depth + 455 - 60 * improving && !excludedMove - && pos.non_pawn_material(us) && ss->ply >= thisThread->nmpMinPly && !is_loss(beta)) + && ss->staticEval >= beta - 21 * depth + 395 && !excludedMove && pos.non_pawn_material(us) + && ss->ply >= thisThread->nmpMinPly && !is_loss(beta)) { assert(eval - beta >= 0);