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; }