Poker A poker hand can be stored in a two-dimensional array. The statement
declares an array with 52 elements, where the first subscript ranges over the four suits and the second subscript ranges over the thirteen denominations. A poker hand is specified by placing 1’s in the elements corresponding to the cards in the hand. See Figure 7.75.
Write a program that requests the five cards as input from the user, creates the related array, and passes the array to procedures to determine the type of the hand: flush (all cards have the same suit), straight (cards have consecutive denominations—ace can come either before 2 or after King), straight flush, four-of-a-kind, full house (three cards of one denomination, two cards of another denomination), three-of-a-kind, two pairs, one pair, or none of the above. See Fig. 7.76.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.