King: finalizing check detection and getLegalMoves()

This commit is contained in:
A.M. Rowsell 2025-08-27 14:22:26 -04:00
commit 22ac250f70
Signed by untrusted user who does not match committer: amr
GPG key ID: E0879EDBDB0CA7B1
4 changed files with 38 additions and 13 deletions

View file

@ -35,6 +35,7 @@ class Board {
void setupInitialPosition();
Piece *getPieceAt(Square square);
void movePiece(Square from, Square to);
int setupFromFEN(std::string strFEN);
bool isInBounds(Square square) const;
bool isEmpty(Square square) const;
uint64_t serialBoard = 0xFFFF00000000FFFF; // opening position