http://www.perlmonks.org?node_id=458293


in reply to Re^4: Generating all 5-card hands
in thread Generating all 5-card hands

thor,
What do you mean suit doesn't matter? In cribbage, you get 4 points if all 4 cards in your hand are the same suit. If you want to prove that no hand with a 5 isn't worth at least 2 points you HAVE to consider suits. You can easily use Re: Iterating over combinations to generate the hands. The hard part is the scoring.

On the other hand, it is a lot easier to prove that there is a hand of 5 cards containing at least 1 five that is a total of less than 2 points.

I don't have an implementation yet, but it certainly does reduce the problem set.

Cheers - L~R