astyle: reformatted all files

This commit is contained in:
A.M. Rowsell 2025-08-28 10:41:59 -04:00
commit 7722a84b2e
Signed by untrusted user who does not match committer: amr
GPG key ID: E0879EDBDB0CA7B1
5 changed files with 120 additions and 99 deletions

View file

@ -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;