Fp #33

Merged
rektdie merged 5 commits from FP into main 2025-03-26 17:15:15 +01:00
Showing only changes of commit f0d8b8804e - Show all commits
+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;
} }