Added attack maps and fixed illegal castle move generation

This commit is contained in:
rektdie committed 2024-04-04 02:17:18 +02:00
1 parent 7dd2bd8823
commit e442906d66
5 files changed
+53 -20

No files matched your search

+3
View File
@@ -13,6 +13,8 @@ public:
std::array<Bitboard, 6> pieces;
std::array<Bitboard, 2> colors;
U64 attackMaps[2][64];
Bitboard occupied;
std::vector<Move> moveList;
@@ -38,6 +40,7 @@ public:
int GetPieceType(int square);
int GetPieceColor(int square);
U64 GetAttackMaps(bool side);
bool InCheck(bool side);
void SetPiece(int piece, int square, bool color);