Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**<
- * Deck of cards for Blackjack.
- */
- #include "blackjack_card.fos"
- class CDeck
- {
- array<CCard@> cards;
- CDeck()
- {
- for (int cardType = CARD_TYPE_ACE; cardType <= CARD_TYPE_KING; cardType++)
- {
- for (int cardSuit = CARD_SUIT_SPADES; cardSuit <= CARD_SUIT_CLUBS; cardSuit++)
- {
- cards.insertLast(CCard(cardType, cardSuit));
- }
- }
- }
- };
Add Comment
Please, Sign In to add comment