From f8c00dda071310a11f8be60993e8cdec4a95961e Mon Sep 17 00:00:00 2001 From: Jay Honnold Date: Sat, 16 Nov 2024 07:03:13 -0700 Subject: [PATCH] Bench: 2625158 --- src/search.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/search.c b/src/search.c index 015c465c..55926f2d 100644 --- a/src/search.c +++ b/src/search.c @@ -511,11 +511,12 @@ int Negamax(int alpha, int beta, int depth, int cutnode, ThreadData* thread, PV* MovePicker mp; if (!isPV && !inCheck) { const int opponentHasEasyCapture = !!OpponentsEasyCaptures(board); + const int opponentDeclining = ss->staticEval + (ss - 1)->staticEval > 1; // Reverse Futility Pruning // i.e. the static eval is so far above beta we prune if (depth <= 9 && !ss->skip && eval < TB_WIN_BOUND && eval >= beta && - eval - 70 * depth + 118 * (improving && !opponentHasEasyCapture) >= beta && + eval - 70 * depth + 118 * (improving && !opponentHasEasyCapture) + 25 * opponentDeclining >= beta && (!hashMove || GetHistory(ss, thread, hashMove) > 11800)) return (eval + beta) / 2;