Pvs fix #42

Merged
rektdie merged 2 commits from pvs_fix into main 2025-03-29 18:37:19 +01:00
Showing only changes of commit 72e16d3db7 - Show all commits
+1 -1
View File
@@ -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 // 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; score = -PVS<isPV>(copy, newDepth, -beta, -alpha, ply + 1).score;
} }