depth could go under 0 which I didnt account for
This commit is contained in:
1 parent
27f914eeaf
commit
58da8b52fa
1 file changed
+1
-1
+1
-1
@@ -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 nodeType = AllNode;
|
||||
|
||||
Reference in new issue
Block a user