From 66865fa84e3d2549c4d84e0923bc52b55cbbae73 Mon Sep 17 00:00:00 2001 From: rektdie Date: Mon, 3 Nov 2025 18:48:55 +0100 Subject: [PATCH] nmp beta margin | bench 4350979 --- source/search.cpp | 2 +- source/tunables.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/source/search.cpp b/source/search.cpp index 49cf6ec..d42d59c 100644 --- a/source/search.cpp +++ b/source/search.cpp @@ -449,7 +449,7 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC } // Null Move Pruning - if (!ctx->doingNullMove && staticEval >= beta) { + if (!ctx->doingNullMove && staticEval >= beta + nmpBetaMargin) { if (depth > 1 && !board.InPossibleZug()) { Board copy = board; copy.MakeMove(Move()); diff --git a/source/tunables.h b/source/tunables.h index 9d351f2..16c5dc1 100644 --- a/source/tunables.h +++ b/source/tunables.h @@ -22,6 +22,7 @@ X_INT(seeQuietThreshold, -80, -150, -20) \ X_INT(seeNoisyThreshold, -30, -80, 20) \ X_INT(aspInitialDelta, 30, 20, 80) \ + X_INT(nmpBetaMargin, 30, 20, 80) \ X_INT(seePawnValue, 100, 80, 120) \ X_INT(seeKnightValue, 300, 250, 350) \ X_INT(seeBishopValue, 350, 300, 400) \ -- 2.47.3