From d70afdef02f9bbe90fdfc160967be87e8a605995 Mon Sep 17 00:00:00 2001 From: rektdie Date: Mon, 3 Mar 2025 08:04:47 +0100 Subject: [PATCH] increasing depth if in check --- source/search.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/search.cpp b/source/search.cpp index 491b25c..461a278 100644 --- a/source/search.cpp +++ b/source/search.cpp @@ -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);