From f0d8b8804ea4069d830614018d1379c1217409b0 Mon Sep 17 00:00:00 2001 From: rektdie Date: Wed, 26 Mar 2025 12:52:40 +0100 Subject: [PATCH] depth dependent fp margin | bench 884159 --- source/search.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/search.cpp b/source/search.cpp index 3c6a61d..7084caf 100644 --- a/source/search.cpp +++ b/source/search.cpp @@ -234,8 +234,8 @@ SearchResults PVS(Board board, int depth, int alpha, int beta, int ply) { // Futility pruning // If our static eval is far below alpha, there is only a small chance // that a quiet move will help us so we skip them - int fpMargin = 100; - if (!isPV && !board.InCheck() && currMove.IsQuiet() + int fpMargin = 100 + 50 * depth; + if (!isPV && ply && !board.InCheck() && currMove.IsQuiet() && depth <= 2 && staticEval + fpMargin < alpha) { continue; }