The program is to simulate a simple version of a poker game. The team is required to create a
class for the Card with at least the following attributes:
- Suit. That represents one of these four: Spades, Hearts, Diamonds and Clubs.
- Rank. Thirteen values running from two to ten, Jack, Queen, King, and Ace.
The team must design the class Deck. This class must contains 52 cards; each unique by the
suit and rank values. The class Deck should have a function call Shuffle, to initialize the
cards in a random order into an array, or perhaps to allow the user to pick random cards from
the array of 52 cards.
Finally, a class Player should also be design, this class is to receive five cards from the deck,
and this could be done with a function SetCard in the class player and a function
HandOneCard from the Deck class. The class player should have a function CheckHand
that display in the screen if there is any card with the same number grouped in pairs, trips or
quads. Look at the example output.
Poker Game Options :
1 – Shuffle and hand
2 – Exit
3 – Additional functions
Please enter an option : 1
Shuffling.....!
5 K A K 5
You have two pairs : [5, K]
Press any key to go back to main menu....
i already write the class but i am not sure how to write the functions,this is my class.