From 9dc387dadd0b11bce9679ab2c8fb7f4b578c28d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannes=20H=C3=B6ke?= Date: Mon, 2 May 2016 12:10:16 +0200 Subject: [PATCH] on leave, return cards to deck --- player.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/player.py b/player.py index 3c1aef4..31fa620 100644 --- a/player.py +++ b/player.py @@ -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)