depth could go under 0 which I didnt account for

This commit is contained in:
rektdie committed 2025-03-05 15:00:15 +01:00
1 parent 27f914eeaf
commit 58da8b52fa
1 file changed
+1 -1
+1 -1
View File
@@ -153,7 +153,7 @@ SearchResults PVS(Board board, int depth, int alpha, int beta) {
} }
} }
if (depth == 0) return Quiescence(board, alpha, beta); if (depth <= 0) return Quiescence(board, alpha, beta);
int score = -inf; int score = -inf;
int nodeType = AllNode; int nodeType = AllNode;