🐛 DeckEmptyError - Bug Fixed
Previously, a player could have joined the game with less than 7 cards in case of DeckEmptyError
This commit is contained in:
parent
8e5c714dbf
commit
e36f9f8270
1 changed files with 1 additions and 2 deletions
|
@ -62,8 +62,7 @@ class Player(object):
|
|||
for _ in range(7):
|
||||
self.cards.append(self.game.deck.draw())
|
||||
except DeckEmptyError:
|
||||
for card in self.cards:
|
||||
self.game.deck.dismiss(card)
|
||||
self.leave()
|
||||
|
||||
raise
|
||||
|
||||
|
|
Loading…
Reference in a new issue