depth dependent fp margin | bench 884159

This commit is contained in:
rektdie committed 2025-03-26 12:52:40 +01:00
1 parent 58a3e8f792
commit f0d8b8804e
1 file changed
+2 -2
+2 -2
View File
@@ -234,8 +234,8 @@ SearchResults PVS(Board board, int depth, int alpha, int beta, int ply) {
// Futility pruning // Futility pruning
// If our static eval is far below alpha, there is only a small chance // 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 // that a quiet move will help us so we skip them
int fpMargin = 100; int fpMargin = 100 + 50 * depth;
if (!isPV && !board.InCheck() && currMove.IsQuiet() if (!isPV && ply && !board.InCheck() && currMove.IsQuiet()
&& depth <= 2 && staticEval + fpMargin < alpha) { && depth <= 2 && staticEval + fpMargin < alpha) {
continue; continue;
} }