increasing depth if in check

This commit is contained in:
rektdie committed 2025-03-03 08:04:47 +01:00
1 parent 42fe6ce04f
commit d70afdef02
1 file changed
+2
+2
View File
@@ -146,6 +146,8 @@ SearchResults PVS(Board board, int depth, int alpha, int beta) {
int score = -inf;
int nodeType = AllNode;
if (board.InCheck(board.sideToMove)) depth++;
nodes++;
GenerateMoves(board, board.sideToMove);