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:
1 file changed
+2
@@ -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);
|
||||||
|
|||||||
Reference in new issue
Block a user