dev: formatting fixes, additional Piece logic and properties, etc
This commit is contained in:
parent
cc37d834fe
commit
b0afa6cd78
7 changed files with 295 additions and 21 deletions
|
|
@ -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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue