A game of Blackjack is defined by the players, a deck of cards, and a few parameters based on the rules.
More...
#include <blackjack.h>
A game of Blackjack is defined by the players, a deck of cards, and a few parameters based on the rules.
◆ Blackjack()
Blackjack::Blackjack |
( |
Players & |
players | ) |
|
|
inline |
Initialize the players playing Blackjack
.
- Initially all players are active (naturally).
- Parameters
-
◆ resetPlayers()
void Blackjack::resetPlayers |
( |
| ) |
|
Reset each player.
- Each player in
m_players
is reset.
active_players
is cleared and re-initialized with the reset players.
◆ play()
Play a game of Blackjack
.
- Each
User
is first hit
twice.
- You play while
gameNotOver
- Once it's over, you
computePlayerOutcomes
◆ displayResult()
void Blackjack::displayResult |
( |
| ) |
|
Display the result for each player.
The documentation for this class was generated from the following files: