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 five-card poker hand. The class must be able to Determine the rank of a hand - "three-of-a-kind", "straight-flush", 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: 2,3,4,5,6,7,8,9, 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!