27 std::size_t m_cardIndex{ 0 };
A Card is defined by its rank (see CardRank) and suit (see CardSuit).
Definition card.h:22
Deck()
Initialize the deck of cards.
Definition deck.cpp:21
const Card & dealCard()
Deal a card (the top one) from the deck.
Definition deck.cpp:57
void shuffle()
Shuffle the deck.
Definition deck.cpp:43
void print() const
Definition deck.cpp:31
std::array< Card, numCards > CardArray
Definition deck.h:21
constexpr std::size_t numCards
A deck has 52 cards.
Definition deck.h:20