on leave, return cards to deck

This commit is contained in:
Jannes Höke 2016-05-02 12:10:16 +02:00
parent 1b1edf508d
commit 9dc387dadd

View file

@ -47,6 +47,11 @@ class Player(object):
self.next = None
self.prev = None
for card in self.cards:
self.game.deck.dismiss(card)
self.cards = list()
def __repr__(self):
return repr(self.user)