astyle: reformatted all files
This commit is contained in:
parent
04c7a931d3
commit
7722a84b2e
5 changed files with 120 additions and 99 deletions
14
Piece.hpp
14
Piece.hpp
|
|
@ -92,6 +92,7 @@ class Piece {
|
|||
};
|
||||
|
||||
class King : public Piece {
|
||||
private:
|
||||
friend class Board;
|
||||
public:
|
||||
|
||||
|
|
@ -102,18 +103,17 @@ class King : public Piece {
|
|||
}
|
||||
virtual std::vector<Move> getLegalMoves(const Square &from, const Board &board) const override;
|
||||
|
||||
bool checkForCheck() const {
|
||||
return inCheck;
|
||||
}
|
||||
bool checkForCheck() const;
|
||||
|
||||
bool checkForCastle(enum CastleSide side) const {
|
||||
if(side == KINGSIDE) {
|
||||
if(side == KINGSIDE)
|
||||
return canCastleKS;
|
||||
} else if(side == QUEENSIDE) {
|
||||
|
||||
else if(side == QUEENSIDE)
|
||||
return canCastleQS;
|
||||
} else {
|
||||
|
||||
else
|
||||
return false;
|
||||
}
|
||||
}
|
||||
protected:
|
||||
bool canCastleQS = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue