fixes: trying to fix for import into MPLAB
This commit is contained in:
parent
5359d0fb05
commit
36db36392a
4 changed files with 4 additions and 19 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
|
@ -1,3 +0,0 @@
|
||||||
[submodule "doxygen-awesome-css"]
|
|
||||||
path = doxygen-awesome-css
|
|
||||||
url = https://github.com/jothepro/doxygen-awesome-css.git
|
|
||||||
13
Board.cpp
13
Board.cpp
|
|
@ -99,11 +99,6 @@ void Board::clearBoard() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Takes a FEN string and creates a board to that spec
|
|
||||||
* @param strFEN A full FEN string
|
|
||||||
* @return Returns -1 on failure, 0 on success
|
|
||||||
*/
|
|
||||||
|
|
||||||
int Board::setupFromFEN(std::string strFEN) {
|
int Board::setupFromFEN(std::string strFEN) {
|
||||||
std::vector<std::string> splitFEN = split(strFEN, ' ');
|
std::vector<std::string> splitFEN = split(strFEN, ' ');
|
||||||
|
|
@ -292,12 +287,6 @@ void Board::nextTurn() {
|
||||||
// stalemate check - do we really need to call getLegalMoves() on every single Piece?
|
// stalemate check - do we really need to call getLegalMoves() on every single Piece?
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This function should only be called after you have confirmed the move is legal!
|
|
||||||
* This will execute the move and assume you've already checked it.
|
|
||||||
* @param from The Square on which the Piece is departing
|
|
||||||
* @param to The Square to which the Piece is moving to
|
|
||||||
*/
|
|
||||||
void Board::movePiece(Square from, Square to) {
|
void Board::movePiece(Square from, Square to) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -311,4 +300,4 @@ void Board::deserializeBoard(uint64_t incomingBoard) {
|
||||||
serialBoard.boardRows[i] = static_cast<uint8_t>((incomingBoard >> (8 * i)) & 0xFF);
|
serialBoard.boardRows[i] = static_cast<uint8_t>((incomingBoard >> (8 * i)) & 0xFF);
|
||||||
// how do we then figure out what has moved?
|
// how do we then figure out what has moved?
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 60366c3d0423a7181e94a0cfab404f0422eca3c7
|
|
||||||
|
|
@ -55,8 +55,8 @@ enum CastleSide {
|
||||||
* A struct that represents a square on the chess board.
|
* A struct that represents a square on the chess board.
|
||||||
*/
|
*/
|
||||||
struct Square {
|
struct Square {
|
||||||
Rank rank; /**< enum Rank rank represents the rank of the Square */
|
Rank rank; /**< rank represents the rank of the Square */
|
||||||
File file; /**< enum File file represents the file of the Square */
|
File file; /**< file represents the file of the Square */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A function to test if the square is a valid square on the chessboard
|
* A function to test if the square is a valid square on the chessboard
|
||||||
|
|
@ -66,7 +66,7 @@ struct Square {
|
||||||
return rank >= 0 && rank < 8 && file >= 0 && file < 8;
|
return rank >= 0 && rank < 8 && file >= 0 && file < 8;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
/**
|
/** @struct Move
|
||||||
* A struct representing the start and end squares of a Move.
|
* A struct representing the start and end squares of a Move.
|
||||||
*/
|
*/
|
||||||
struct Move {
|
struct Move {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue