From 77b81516d9340f616305cc2190a37ccf372b7360 Mon Sep 17 00:00:00 2001 From: rektdie Date: Sat, 29 Mar 2025 17:10:05 +0100 Subject: [PATCH 1/2] bugfix in PVS | bench 3232696 --- source/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/search.cpp b/source/search.cpp index 1aedc12..d8dcb1e 100644 --- a/source/search.cpp +++ b/source/search.cpp @@ -268,7 +268,7 @@ SearchResults PVS(Board board, int depth, int alpha, int beta, int ply) { int newDepth = depth + board.InCheck() - 1; // First move (suspected PV node) - if (!i) { + if (!moveSeen) { // Full search score = -PVS(copy, newDepth, -beta, -alpha, ply + 1).score; } else if (reductions) { -- 2.47.3 From 72e16d3db723bad62ec26c6007443cf6290989ae Mon Sep 17 00:00:00 2001 From: rektdie Date: Sat, 29 Mar 2025 17:21:30 +0100 Subject: [PATCH 2/2] forgot something | bench 2951918 --- source/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/search.cpp b/source/search.cpp index d8dcb1e..dafa6b4 100644 --- a/source/search.cpp +++ b/source/search.cpp @@ -285,7 +285,7 @@ SearchResults PVS(Board board, int depth, int alpha, int beta, int ply) { } // Check if we need to do full window re-search - if (i && score > alpha && score < beta) { + if (moveSeen && score > alpha && score < beta) { score = -PVS(copy, newDepth, -beta, -alpha, ply + 1).score; } -- 2.47.3