/* * CS307 Assignment 1 * Card Game * Dan Fraser * */ /* * Deck class header */ #include "Card.h" class Deck { int num_cards; // keeps track of the number of cards, might come in handy Card *deck[52]; // Storage for the cards. Pointer is NULL if card is missing. public: // Our default constructor, creates the complete deck of cards Deck(void); // Our destructor: deletes our cards, cleans up ~Deck(void); // Randomizes (mostly) the deck void shuffle(void); // Compacts the deck, eliminates empty slots void pack(void); // prints the contents of the deck for debugging void dump(void); // Returns a card from position given in parameter, removes the card // completely from the deck, leaves a hole. Card *get_card(int); // Returns 0 if the deck is empty, number of remaining cards otherwise. int size(void); };