dev: formatting fixes, additional Piece logic and properties, etc

This commit is contained in:
A.M. Rowsell 2025-08-09 07:06:24 -04:00
commit b0afa6cd78
Signed by untrusted user who does not match committer: amr
GPG key ID: E0879EDBDB0CA7B1
7 changed files with 295 additions and 21 deletions

View file

@ -31,6 +31,7 @@
Board::Board() {
// set up the board grid with smart pointers
// initialize each square with a Piece, set to PIECE_EMPTY
playerTurn = PL_WHITE;
boardGrid.resize(8);
for (int i = 0; i < 8; i++) {
boardGrid[i].resize(8);
@ -92,5 +93,10 @@ void Board::movePiece(Square from, Square to) {
}
void Board::deserializeBoard(uint64_t incomingBoard) {
uint8_t boardRows[8];
for (int i = 0; i < 8; i++) {
boardRows[i] = (incomingBoard >> (8 * i)) & 0xFF;
}
// how do we then figure out what has moved?
return;
}