-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
short deck evaluation #23
Comments
Hi, @travisstaloch. If you allow some space in the value distribution (i.e. some value has no matching short deck poker hand), there is a much easier solution. This is the standard deck 5-card hand distribution, with Full House better than Flush.
We can turn that distribution into the following, so that Flush beats Full House:
Basically what you need to do is: after getting the value from Now, we need to solve the edge case: the A 9 8 7 6 hand. Note that it can be a Straight or a Straight Flush. According to the 7426 table, the value of a suited A 9 8 7 6 hand is 747. Once you find out the value is 747 (before the flush/full house adjustment), adjust it to be 6. Similarly, once you get the value 6610 (the unsuited A 9 8 7 6), adjust it to be 1605. |
Thanks so much for the advice. I'll be working on this soon. Sounds fairly easy as you described. I think I need to adjust the card ids I'm using so that 2 => 6 and T => A before evaluating so that the ranks will begin at the category beginning. Will let you know. |
Hello. I'm attempting to add support for short deck poker (9 rank deck 6-A rather than 13 rank 2-A). Right now I'm stuck trying to generate flush_sd and nonflush_sd look up tables (LUTs). I believe creating separate LUTs for this game is necessary because a flush beats a full house and A6789 is a straight in short deck. Would you agree that this is the best course? If so, can you recommend a strategy for creating these LUTs? I'm planning to submit a PR if i can figure out how to get this working.
I have calculated the number of distinct hands possible for each category as:
Which gives these offsets:
I'm using the existing
evaluate_5_cards
method to find the correct rank/category. But I'm not sure how to construct the rest of the rank. Do you have any suggestions?The text was updated successfully, but these errors were encountered: