dev: Continue to write the chess logic, working through it bit by bit
This commit is contained in:
parent
d6eb6b69c2
commit
ba64e2bcf3
4 changed files with 96 additions and 15 deletions
|
|
@ -24,11 +24,12 @@ private:
|
|||
|
||||
public:
|
||||
Board();
|
||||
~Board();
|
||||
virtual ~Board();
|
||||
void setupInitialPosition();
|
||||
Piece *getPieceAt(int x, int y) const;
|
||||
Piece *getPieceAt(Square square) const;
|
||||
void movePiece(Square from, Square to);
|
||||
bool isInBounds(int x, int y) const;
|
||||
bool isInBounds(Square square) const;
|
||||
bool isEmpty(Square square) const;
|
||||
uint64_t serialBoard = 0xFFFF00000000FFFF; // opening position
|
||||
void deserializeBoard(uint64_t incomingBoard);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue