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
J5555, 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
re: Part of the solution by Charlie)
Whoops, thanks Charlie, good catch.
Can your program verify if I was on the right track?
# of cards # of unique sets totaling 15
----------------------------------------
2 64
3 1124
4 3696
5 5724
6 4608
That's as far as I got doing it by hand (I'm pretty bored, obviously).
|
Posted by tomarken
on 2006-06-07 16:06:28 |