FP with some test conds | bench 968174

This commit is contained in:
rektdie committed 2025-03-26 12:16:27 +01:00
1 parent 03cc40bda3
commit 2c1d448d8f
2 files changed
+16 -1

No files matched your search

+10
View File
@@ -236,6 +236,16 @@ SearchResults PVS(Board board, int depth, int alpha, int beta, int ply) {
if (!isLegal) continue;
// 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()
&& depth <= 2 && staticEval + fpMargin < alpha) {
positionIndex--;
continue;
}
int reductions = GetReductions(board, currMove, depth, moveSeen, ply);
// First move (suspected PV node)