added a base to rfp | bench 6836864

This commit is contained in:
rektdie committed 2025-09-11 10:19:21 +02:00
1 parent 5519f300b5
commit 4c04bf2830
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -413,7 +413,7 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC
if (!board.InCheck() && !ctx->excluded) { if (!board.InCheck() && !ctx->excluded) {
if (ply) { if (ply) {
// Reverse Futility Pruning // Reverse Futility Pruning
int margin = rfpMargin * (depth - improving); int margin = rfpBase + rfpMargin * (depth - improving);
if (!ttHit && staticEval - margin >= beta && depth < 7) { if (!ttHit && staticEval - margin >= beta && depth < 7) {
return (beta + (staticEval - beta) / 3); return (beta + (staticEval - beta) / 3);
} }
+1
View File
@@ -12,6 +12,7 @@
X_INT(lmrIsPV, 1024, 512, 2048) \ X_INT(lmrIsPV, 1024, 512, 2048) \
X_INT(lmrHistoryDivisor, 8192, 6000, 10000) \ X_INT(lmrHistoryDivisor, 8192, 6000, 10000) \
X_INT(lmrImproving, 1024, 6000, 10000) \ X_INT(lmrImproving, 1024, 6000, 10000) \
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(doubleExtMargin, 30, 10, 60) \ X_INT(doubleExtMargin, 30, 10, 60) \