|
Blackjack
|
#include <deck.h>
Public Member Functions | |
| Deck () | |
| Initialize the deck of cards. | |
| void | print () const |
| void | shuffle () |
| Shuffle the deck. | |
| const Card & | dealCard () |
| Deal a card (the top one) from the deck. | |
| Deck::Deck | ( | ) |
Initialize the deck of cards.
Create 52 cards to initialize the deck
| void Deck::print | ( | ) | const |
| void Deck::shuffle | ( | ) |
Shuffle the deck.
m_cardIndex to 0. | const Card & Deck::dealCard | ( | ) |
Deal a card (the top one) from the deck.
m_cardIndex