You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to repeatedely evaluate random hands with the deck.draw() method, however after a few times of running it sequentially, it returns an error:
File "c:\Users\XXXXX\main.py", line 57, in <module>
evalHand()
File "c:\Users\XXXXX\main.py", line 14, in evalHand
board = deck.draw(5)
File "C:\Python39\lib\site-packages\treys\deck.py", line 27, in draw
cards.append(self.draw())
File "C:\Python39\lib\site-packages\treys\deck.py", line 23, in draw
return self.cards.pop(0)
IndexError: pop from empty list
The text was updated successfully, but these errors were encountered:
I am trying to repeatedely evaluate random hands with the deck.draw() method, however after a few times of running it sequentially, it returns an error:
The text was updated successfully, but these errors were encountered: