added IsPinned function and pawn pushes to block check

This commit is contained in:
rektdie committed 2024-04-07 22:53:10 +02:00
1 parent 6883266961
commit 825e553ca3
5 files changed
+193 -7

No files matched your search

-2
View File
@@ -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) {