added operator overloading to Bitboard class

This commit is contained in:
rektdie committed 2024-05-15 00:54:46 +02:00
1 parent f6c2b6a881
commit 4d8a7f6a2e
5 files changed
+77 -45

No files matched your search

+1 -1
View File
@@ -277,7 +277,7 @@ U64 Board::GetAttackMaps(bool side) {
bool Board::InCheck(bool side) {
Bitboard myKingSquare = colors[side] & pieces[King];
return GetAttackMaps(!side) & myKingSquare.GetBoard();
return GetAttackMaps(!side) & myKingSquare;
}
void Board::SetPiece(int piece, int square, bool color) {