
I was reading the thread by nullius and checked the profile of Dabs. So if you do it smart can just go from 1 - 7,462.This is a discussion topic, not an accusation to Dabs.

There are 2,598,960 unique hands but there are only 7,462 distinct hands. Int32 (2^32) goes up to 4294967296 which is just short so you have to use Int64

0 - high card - 5 cardsģ - trips - three cards - start with tripĦ - boat - 2 cards - start with the tripsģ 3 3 J J would be 60311000000 notice the 3 is first as it is the trips There is no purpose to scoring suite as all suite are equal.
#Pokerth scoring system full
Square and sum does not work for like a full house as 5 5 5 2 2 would lose to 4 4 4 A A On no pair or flush all five cards can come into play so you need to allow for hand rank + 5 card rank. Terms are a little confusing in poker as you have hand rank and card rank. If you have some custom game then spell it out (and I will just delete this answer). In standard poker, not every hand should end up with a different score because two hands can be tied.

by adding a digit between 1 and 4 to the end for a suit tiebreaker. Note that suits are not ranked in standard poker, but it would be easy enough to extend this kind of scoring to include suit information if you wanted to, e.g. Unless I'm forgetting something about poker rules, a higher integer should now always represent a better hand. So for example, the hand 6 6 A K 2 is a pair, the second lowest kind of hand, so it becomes 20606141302 as an integer (that's 2-06-06-14-13-02). Then put the cards in descending order but with key hand elements like pairs in front, write each number as two digits (with aces as 14), and concatenate the results. If you want scores you can interpret yourself, here's one method:įirst assign a score 1-9 for the type of hand (only singles = 1 straight flush = 9). There are 2598960 (= 52 choose 5) different 5-card poker hands, a small enough number that a computer program can quickly sort them all and assign consecutive scores, though they wouldn't be very readable by humans. I can't tell why you'd want to do this, but it's easy enough to do. What algorithm will work and account for all known hands of value? Hand A will receive a higher tie-breaker bonus for a 3 instead of a 2.
#Pokerth scoring system how to

