main.m1031 chars38 lines
This code initializes variables for a deck of cards, suits, and values. It then sets up a while loop to repeatedly shuffle and deal a player's hand, and check if the hand is a full house using the isFullHouse
function. If the hand is a full house, the loop breaks and a congratulatory message is displayed. If not, the loop continues until a full house is obtained. The isFullHouse
function converts a hand to its corresponding values, counts the number of cards with each value, and checks if the hand contains three cards of one value and two cards of another value (a full house).
gistlibby LogSnag