diff options
Diffstat (limited to 'game.h')
-rw-r--r-- | game.h | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -26,12 +26,17 @@ using std::cout; using std::endl; using std::cin; +struct countAndSuit +{ + enum Suit whatSuit; + int count; +}; + class Game : virtual public CardPile, public User, public Opponent { private: protected: - static string *hands[10]; public: Game(void); @@ -42,15 +47,20 @@ class Game : virtual public CardPile, public User, public Opponent /* asks user for a number, param1 = msg, 2 = rangeA, 3 = rangeB */ int parseInt(string *, int, int); int howManyCardsOfSameSuit(Card **); - bool pairOrBetter(Card **cards); + bool pairOrBetter(Card **); int numOfSameCards(Card **); - void opponentAI(Card **cards); + struct countAndSuit numOfSameSuit(Card **); + bool doWeHaveAnAce(Card **); + void opponentAI(Card **); /* variables */ int numOfOpponents; int handsPlayed; int handsWon; + + static string *hands[10]; + static string *suits[5]; }; #endif |