From 20c636a3b46a6ad6eda8be23823ac50c1c9f419f Mon Sep 17 00:00:00 2001 From: rektdie Date: Sun, 20 Jul 2025 03:42:49 +0200 Subject: [PATCH] added Eren's lmp formula too | bench 2097722 --- source/search.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/search.cpp b/source/search.cpp index 7018ee9..ee6e6ce 100644 --- a/source/search.cpp +++ b/source/search.cpp @@ -404,9 +404,10 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC // If we are near a leaf node we prune moves // that are late in the list if (!isPV && !board.InCheck() && currMove.IsQuiet() && notMated) { - int lmpBase = 7; + int lmpBase = 4; - int lmpThreshold = lmpBase + 4 * depth; + int lmpMultiplier = 3; + int lmpThreshold = (lmpBase + lmpMultiplier * (depth - 1) * (depth - 1)); if (moveSeen >= lmpThreshold) { continue;