Poker hand ranking
Write a function that tells you the best scoring for a given poker hand of 5 cards. For instance:
(score [[3 :diamonds] [3 :hearts] [3 :spades] [5 :hearts] [:king :clubs]])
=> :three-of-a-kind ;; three 3s
Cards are represented as a tuple of rank (number or name if it's a face card) and suit. Face card names are the keywords :ace
, :king
, :queen
, :jack
. Suits are :diamonds
, :spades
, :hearts
, :clubs
.