Merge pull request #4 from rektdie/check_search_extension

increasing depth if in check
This commit was merged in pull request #4.
This commit is contained in:
rektdie authored and GitHub committed 2025-03-03 17:35:21 +01:00
commit 8bdb4ab51e
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 score = -inf;
int nodeType = AllNode; int nodeType = AllNode;
if (board.InCheck(board.sideToMove)) depth++;
nodes++; nodes++;
GenerateMoves(board, board.sideToMove); GenerateMoves(board, board.sideToMove);