Add fast Board::IsLegal move validation
This commit is contained in:
1 parent
0f748da56c
commit
a9f466b37b
5 files changed
+694
-602
No files matched your search
+4
-2
@@ -65,11 +65,13 @@ public:
|
||||
void RemovePiece(int piece, int square, bool color);
|
||||
|
||||
void Promote(int square, int pieceType, int color, bool isCapture);
|
||||
bool MakeMove(Move move);
|
||||
bool MakeMove(Move move);
|
||||
bool IsLegal(Move move);
|
||||
|
||||
bool InPossibleZug();
|
||||
|
||||
Bitboard AttacksTo(int square, Bitboard occupancy);
|
||||
Bitboard AttacksTo(int square, Bitboard occupancy);
|
||||
bool IsSquareAttackedBy(bool attackerSide, int square, Bitboard occupancy);
|
||||
|
||||
bool IsSquareThreatened(bool side, int square);
|
||||
};
|
||||
Reference in new issue
Block a user