In Cribbage, a hand scores as follows:
2 points for each set of cards that totals 15 (face cards count 10, aces count 1)
2 points for each pair (this means 3-of-a-kind is worth 6 points and 4-of-a-kind is worth 12 points)
n points for each maximal straight containing n cards
(i.e. a four card straight does not also count as two three card straights)
n points for each maximal flush containing n cards
(i.e. a four card flush does not also count as four three card flushes)
1 point for the jack of trumps
It's easy to show that the best five card hand is J
5555, worth 29 points, and, although impossible in an actual game, the best six card hand would be 445566, worth 46 points.
If the entire deck of 52 cards was considered to be a single cribbage hand, what would be its value?
(In reply to some help from the computer (spoiler)
There are actually 4 ways of choosing the 3 suits when you have 3 of the same denomination (in each set of three, you are choosing to leave one of the four suits out). It looks like your program only accounts for 3 of them...
Posted by tomarken
on 2006-06-07 16:10:53