diff --git a/AUTHORS b/AUTHORS index f6468c56..1e5e51e6 100644 --- a/AUTHORS +++ b/AUTHORS @@ -129,6 +129,7 @@ Kian E (KJE-98) kinderchocolate Kiran Panditrao (Krgp) Kojirion +Krisztián Peőcz Krystian Kuzniarek (kuzkry) Leonardo Ljubičić (ICCF World Champion) Leonid Pechenik (lp--) diff --git a/src/search.cpp b/src/search.cpp index 3c8f33b4..9f29f828 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -803,12 +803,10 @@ Value Search::Worker::search( && eval >= beta && (!ttData.move || ttCapture) && !is_loss(beta) && !is_win(eval)) return beta + (eval - beta) / 3; - improving |= ss->staticEval >= beta + 97; - // Step 9. Null move search with verification search if (cutNode && (ss - 1)->currentMove != Move::null() && eval >= beta - && ss->staticEval >= beta - 20 * depth + 440 && !excludedMove && pos.non_pawn_material(us) - && ss->ply >= thisThread->nmpMinPly && !is_loss(beta)) + && ss->staticEval >= beta - 20 * depth + 470 - 60 * improving && !excludedMove + && pos.non_pawn_material(us) && ss->ply >= thisThread->nmpMinPly && !is_loss(beta)) { assert(eval - beta >= 0); @@ -846,6 +844,8 @@ Value Search::Worker::search( } } + improving |= ss->staticEval >= beta + 97; + // Step 10. Internal iterative reductions // For PV nodes without a ttMove as well as for deep enough cutNodes, we decrease depth. // (* Scaler) Especially if they make IIR more aggressive.