Merge pull request #148 from rektdie/ttpv-no-rfp

prevent rfp in ttpv nodes | bench 2041087
This commit was merged in pull request #148.
This commit is contained in:
rektdie authored and GitHub committed 2026-02-26 01:39:02 +01:00
commit 855e5c2377
1 file changed
+1 -1
+1 -1
View File
@@ -389,7 +389,7 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC
if (ply) {
// Reverse Futility Pruning
int margin = rfpBase + rfpMargin * (depth - improving);
if (ttAdjustedEval - margin >= beta && depth < 7) {
if (!ttpv && ttAdjustedEval - margin >= beta && depth < 7) {
return (beta + (ttAdjustedEval - beta) / 3);
}