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 (ply) {
// Reverse Futility Pruning
int margin = rfpMargin * (depth - improving);
int margin = rfpBase + rfpMargin * (depth - improving);
if (!ttHit && staticEval - margin >= beta && depth < 7) {
return (beta + (staticEval - beta) / 3);
}