[HELP PLEASE] A game needs some help, Python 3
Basically, I'm wondering how to get the logic in the game (the above REPL) to check if the amount of cards in the player's hand is equal to the amount of any one suit in the hand.
Thank you REPL.it for helping.
I got an error saying Traceback (most recent call last):
File "main.py", line 18, in <module>
File "/home/runner/zjrwjnwe4b9/cards.py", line 34, in deal
carddrawn = random.choice(deck)
File "/usr/lib/python3.8/random.py", line 290, in choice
raise IndexError('Cannot choose from an empty sequence') from None
IndexError: Cannot choose from an empty sequence
ok ok, so if I remember correctly, suites have 13 cards, so that means, we have something like:
but maybe I am understanding this wrong as you can specify a deal that would render this statement to be never true...