increasing depth if in check
This commit is contained in:
1 parent
42fe6ce04f
commit
d70afdef02
1 file changed
+2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user