Run's of n cards in order in the same suit are worth floor(n*(n+1)/14). This has the property that if you have 4 runs of 13 then you'll get 52, but it is biased towards longer runs. Here's a table of the values for 1 to 13 cards in order.
{0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 9, 11, 13}
-Jim
PS If you look at the code you'll see that it's not implemented this way, but in a way to make the sum to 52 property more obvious.
Here's a table of the values for 1 to 13 cards in order.
{0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 9, 11, 13}
I wonder if spider should be scored with the same system or at least something similar? I know I hate to see all that effort wasted in spider, but I don't think we want to reward someone who got one more full suit than someone else less than someone who just got a bunch of partial runs.
Comments
Run's of n cards in order in the same suit are worth floor(n*(n+1)/14). This has the property that if you have 4 runs of 13 then you'll get 52, but it is biased towards longer runs. Here's a table of the values for 1 to 13 cards in order.
{0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 9, 11, 13}
-Jim
PS If you look at the code you'll see that it's not implemented this way, but in a way to make the sum to 52 property more obvious.
I wonder if spider should be scored with the same system or at least something similar? I know I hate to see all that effort wasted in spider, but I don't think we want to reward someone who got one more full suit than someone else less than someone who just got a bunch of partial runs.