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); bool takeTilesFromPool(azool::TileColor color, int& numTiles, bool& poolPenalty);
void returnTilesToBag(int numTiles, azool::TileColor color); void returnTilesToBag(int numTiles, azool::TileColor color);
void dealTiles(); void dealTiles();
int numFactories() { return tileFactories.size(); } int numFactories() {
return tileFactories.size();
}
bool endOfRound() { bool endOfRound() {
// round ends when the pool and tile factories are empty // round ends when the pool and tile factories are empty
for (int ii = 0; ii < azool::NUMCOLORS; ++ii) { 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 placeTiles(int rowIdx, azool::TileColor color, int numTiles);
void endRound(bool& fullRow); void endRound(bool& fullRow);
void finalizeScore(); void finalizeScore();
int getScore() const { return myScore; } int getScore() const {
return myScore;
}
std::string printMyBoard() const; std::string printMyBoard() const;
bool tookPenalty() const { return myTookPoolPenaltyThisRound; } bool tookPenalty() const {
const std::string getPlayerName() const { return myName; } return myTookPoolPenaltyThisRound;
}
const std::string getPlayerName() const {
return myName;
}
private: private:
Player(const Player&) = delete; Player(const Player&) = delete;