Question: Develop a class that can represent a five - card poker hand. The class must be able to Determine the rank of a hand -
Develop a class that can represent a fivecard poker hand. The class must be able to Determine the rank of a hand "threeofakind", "straightflush", etc., and Compare any two hands to determine which if either ranks higher. The constructor should accept a string representation of five cards, for example, Rank: T J Q K A Suit: C D H S Where: T J Q K A represent a rank of Ten, Jack, Queen, King, and Ace, and C D H S represent suits of Clubs, Diamonds, Hearts, and Spades
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
