increasing depth if in check #4
@@ -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