C# Card Shuffling and Dealing

 Modify Fig. 8.12 in the textbook to deal a five-card poker hand. Then modify class Deckofcards of Fig. 8.11 to include methods that determine whether a hand contains:

  1. a pair
  2. two pair
  3. three of a kind (e.g., three jacks)
  4. four of a kind (e.g., four aces)
  5. a flush (i.e., all five cards of the same suit)
  6.  a straight (i.e., five cards of consecutive face values)
  7. a full house (i.e., two cards of one face value, and three cards of another face value.
Tags: No tags