-
Notifications
You must be signed in to change notification settings - Fork 30
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
Error Calculating Hand Strength for OmahaEightOrBetterLowHand #18
Comments
Ah, I think I'm on to something - the problem may be with what happens when the random hands generated can't create a valid low hand:
fails but this one works:
This is the most direct route to triggering the error:
For my purposes, I managed to work around it by modifying hands.py
to this:
I'm sure this isn't a valid permanent fix but I'm sharing what I found as the root cause - EightOrBetterLookup adds no entries for non-qualifying hands because it generates a ValueError it tries to create an instance of the Hand class and the init fails on the self.lookup.has_entry(self.cards) call on line 90 of hands.py. |
Hi, Sorry for the late response. Thanks for sharing this! Also, I find the error message containing 'ABCMeta' to be problematic. It should be the actual hand class. I will think of ways to fix this... I think the change can be isolated to I don't have the bandwidth to work on this right now, but will aim to get this done by early November. Thanks! |
No worries! My fix is working for my purposes but I'm mainly using it for the equities/hand strength anyway, so I'm not worried about side effects (yet...). Thanks for your work on this! |
I was trying to use this to calculate Omaha High Low hand strengths but I think I ran into a bug:
results in this error:
It seems like the evaluation for low hands isn't properly calculating the "max_hand" as best as I can tell from digging in the code. But I have no idea what to test next - none of my attempts to fix it have worked so far. Any suggestions or am I just doing something wrong?
It works great for OmahaHoldemHand, so thank you for that!
The text was updated successfully, but these errors were encountered: