razoring | bench 4070172

This commit is contained in:
rektdie committed 2025-12-04 01:48:05 +01:00
1 parent 6288bdc3f8
commit 6c8869040f
2 files changed
+10

No files matched your search

+9
View File
@@ -466,6 +466,15 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC
if (score >= beta) return score; if (score >= beta) return score;
} }
} }
// Razoring
if (!isPV && depth <= 3 && staticEval + razoringScalar * depth < alpha) {
int score = Quiescence<mode>(board, alpha, beta, ply, ctx).score;
if (score < alpha) {
return score;
}
}
} }
} }
+1
View File
@@ -18,6 +18,7 @@
X_INT(rfpBase, 25, 50, 200) \ X_INT(rfpBase, 25, 50, 200) \
X_INT(rfpMargin, 100, 50, 200) \ X_INT(rfpMargin, 100, 50, 200) \
X_INT(fpMargin, 100, 50, 200) \ X_INT(fpMargin, 100, 50, 200) \
X_INT(razoringScalar, 200, 50, 200) \
X_INT(doubleExtMargin, 30, 10, 60) \ X_INT(doubleExtMargin, 30, 10, 60) \
X_INT(seeQuietThreshold, -80, -150, -20) \ X_INT(seeQuietThreshold, -80, -150, -20) \
X_INT(seeNoisyThreshold, -30, -80, 20) \ X_INT(seeNoisyThreshold, -30, -80, 20) \