lint/style changes

This commit is contained in:
emclrk 2023-08-12 17:00:24 -07:00
parent 4404eb21e9
commit 8736aee27c
5 changed files with 87 additions and 79 deletions

View File

@ -22,7 +22,9 @@ public:
bool takeTilesFromPool(azool::TileColor color, int& numTiles, bool& poolPenalty);
void returnTilesToBag(int numTiles, azool::TileColor color);
void dealTiles();
int numFactories() { return tileFactories.size(); }
int numFactories() {
return tileFactories.size();
}
bool endOfRound() {
// round ends when the pool and tile factories are empty
for (int ii = 0; ii < azool::NUMCOLORS; ++ii) {

View File

@ -15,10 +15,16 @@ public:
void placeTiles(int rowIdx, azool::TileColor color, int numTiles);
void endRound(bool& fullRow);
void finalizeScore();
int getScore() const { return myScore; }
int getScore() const {
return myScore;
}
std::string printMyBoard() const;
bool tookPenalty() const { return myTookPoolPenaltyThisRound; }
const std::string getPlayerName() const { return myName; }
bool tookPenalty() const {
return myTookPoolPenaltyThisRound;
}
const std::string getPlayerName() const {
return myName;
}
private:
Player(const Player&) = delete;