[Board] Implement castlingRights and enPassantSquare
This commit is contained in:
@@ -41,19 +41,19 @@ PieceColor Board::turn() const {
|
||||
}
|
||||
|
||||
void Board::setCastlingRights(CastlingRights cr) {
|
||||
(void) cr;
|
||||
mCr = cr;
|
||||
}
|
||||
|
||||
CastlingRights Board::castlingRights() const {
|
||||
return CastlingRights::None;
|
||||
return mCr;
|
||||
}
|
||||
|
||||
void Board::setEnPassantSquare(const Square::Optional &square) {
|
||||
(void) square;
|
||||
mEPS = square->index();
|
||||
}
|
||||
|
||||
Square::Optional Board::enPassantSquare() const {
|
||||
return std::nullopt;
|
||||
return Square::fromIndex(mEPS);
|
||||
}
|
||||
|
||||
void Board::makeMove(const Move &move) {
|
||||
|
Reference in New Issue
Block a user