From 8639c4d4c3d72111c7efe0d27c5b837d09a142fa Mon Sep 17 00:00:00 2001 From: rektdie Date: Fri, 21 Mar 2025 11:38:47 +0100 Subject: [PATCH] bugfix in PVS | bench 900613 --- source/search.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/search.cpp b/source/search.cpp index 3ea3af0..42b02b1 100644 --- a/source/search.cpp +++ b/source/search.cpp @@ -241,7 +241,7 @@ SearchResults PVS(Board board, int depth, int alpha, int beta, int ply) { // First move (suspected PV node) if (!i) { // Full search - score = -PVS(copy, depth - 1, -beta, -alpha, ply + 1).score; + score = -PVS(copy, depth - 1, -beta, -alpha, ply + 1).score; } else if (reductions) { // Null-window search with reductions score = -PVS(copy, depth - 1 - reductions, -alpha-1, -alpha, ply + 1).score; @@ -257,7 +257,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) { - score = -PVS(copy, depth - 1, -beta, -alpha, ply + 1).score; + score = -PVS(copy, depth - 1, -beta, -alpha, ply + 1).score; } positionIndex--;