From d85edd9faf78713276dbca05003bb92bc9481b2b Mon Sep 17 00:00:00 2001 From: rektdie Date: Mon, 21 Jul 2025 12:26:15 +0200 Subject: [PATCH] added history to fp | bench 2298837 --- source/search.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/search.cpp b/source/search.cpp index 30c8f80..74c4448 100644 --- a/source/search.cpp +++ b/source/search.cpp @@ -417,7 +417,9 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC // 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 * depth; + int historyScore = ctx->history[board.sideToMove][currMove.MoveFrom()][currMove.MoveTo()]; + int fpMargin = 100 * depth + historyScore / 32; + if (!isPV && ply && currMove.IsQuiet() && depth <= 5 && staticEval + fpMargin < alpha && notMated) { continue; -- 2.47.3