Merge pull request #42 from rektdie/pvs_fix

Pvs fix bench 2951918
This commit was merged in pull request #42.
This commit is contained in:
rektdie authored and GitHub committed 2025-03-29 18:37:19 +01:00
commit 7c17b6e44a
1 file changed
+2 -2
+2 -2
View File
@@ -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<isPV>(copy, newDepth, -beta, -alpha, ply + 1).score;
} else if (reductions) {
@@ -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<isPV>(copy, newDepth, -beta, -alpha, ply + 1).score;
}