added operator overloading to Bitboard class
This commit is contained in:
1 parent
f6c2b6a881
commit
4d8a7f6a2e
5 files changed
+77
-45
No files matched your search
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user