29static constexpr int playerLimit{ 21 };
35static constexpr int dealerLimit{ 17 };
45 std::size_t m_numPlayers{};
69 void computePlayerOutcomes();
81 m_numPlayers = players.size();
83 for (
auto& player : players)
85 m_players.push_back(player);
86 active_players.push_back(player);
std::vector< Player * > Players
Players is a vector of Player addresses
Definition blackjack.h:23
A game of Blackjack is defined by the players, a deck of cards, and a few parameters based on the rul...
Definition blackjack.h:42
void play()
Play a game of Blackjack.
Definition blackjack.cpp:116
Blackjack(Players &players)
Initialize the players playing Blackjack.
Definition blackjack.h:79
void resetPlayers()
Reset each player.
Definition blackjack.cpp:22
void displayResult()
Display the result for each player.
Definition blackjack.cpp:90
Defines the contract for a Player.