No globals #50
+1
-1
@@ -113,7 +113,7 @@ static bool IsInsuffMat(Board& board) {
|
||||
&& !(board.pieces[Pawn] | board.pieces[Queen] | board.pieces[Rook]));
|
||||
}
|
||||
|
||||
bool IsDraw(Board &board, SearchContext& ctx) {
|
||||
static bool IsDraw(Board &board, SearchContext& ctx) {
|
||||
return IsFifty(board) || IsInsuffMat(board) || IsThreefold(board, ctx);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user