increasing depth if in check #4

Merged
rektdie merged 1 commits from check_search_extension into legalMovegen 2025-03-03 17:35:21 +01:00
+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);