Add fast Board::IsLegal move validation

This commit is contained in:
rektdie committed 2026-02-18 11:48:07 +01:00
1 parent 0f748da56c
commit a9f466b37b
5 files changed
+694 -602

No files matched your search

+4 -2
View File
@@ -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);
};