16. Poker hand ranking
The pokerhands are ranked according to the following:
1. Royal Straight Flush
The best possible straight flush. Ten, Jack, Queen, King, and Ace, all of the same suit.
2. Straight flush
Cards of five consecutive ranks, all of the same suit.
3. Four of a kind
Four cards of any one rank, and any other card.
4. Full house
Three cards of one rank, and two cards of a second rank.
5. Flush
Five cards of the same suit that doesn't make a straight.
6. Straight
Cards of f...