Unable to create 4-card Omaha Hands for analysis
Closed this issue · 2 comments
Hi everyone I am trying to simulate and analyze 4-card PLO games, but when running this code
h1 = OmahaHoldemHand('AdJdJsQh')
I get this error:
ValueError Traceback (most recent call last)
Cell In[13], line 1
----> 1 h1 = OmahaHoldemHand('AdJdJsQh')
File /Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/pokerkit/hands.py:91, in Hand.init(self, cards)
88 self.__cards = Card.clean(cards)
90 if not self.lookup.has_entry(self.cards):
---> 91 raise ValueError(
92 (
93 f'The cards {repr(cards)} form an invalid'
94 f' {type(self).qualname} hand.'
95 ),
96 )
ValueError: The cards 'AdJdJsQh' form an invalid OmahaHoldemHand hand.
Any help would be greatly appreciated
Our library's Omaha hand only supports 5-card combinations. We found that supporting 1,2,3,4-card combinations are quite tricky. Sorry!
@AussieSeaweed thanks so much!