All five cards have sequential face values, which is called a “run” in other card games. The hand features three cards of the same face value. If two players have the same two pairs, the next highest card chooses the winner. Two cards of the same face value match, such as two sixes or two tens. For two such hands, the one with the highest card(s) wins. No pattern is apparent the hand is “garbage.” Yet one card is higher than the others.
Poker hands have ranks depending on the odds of obtaining a specific card arrangement.
Now comes the fun part: Determining the hand’s value. The playing_card structure provides a convenient reference for each card, and the hand is sorted. Last week’s Lesson brought the Poker program up to speed with regards to drawing a hand of 5 cards.