added IsPinned function and pawn pushes to block check
This commit is contained in:
1 parent
6883266961
commit
825e553ca3
5 files changed
+193
-7
No files matched your search
@@ -273,8 +273,6 @@ bool Board::InCheck(bool side) {
|
||||
Bitboard myKingSquare = colors[side] & pieces[King];
|
||||
|
||||
return GetAttackMaps(!side) & myKingSquare.GetBoard();
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
void Board::SetPiece(int piece, int square, bool color) {
|
||||
|
||||
Reference in new issue
Block a user