From daa211b6923f02a36442e4e89e803675ed4d4c71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannes=20H=C3=B6ke?= Date: Tue, 19 Apr 2016 00:41:48 +0200 Subject: [PATCH] do not begin with special card --- game.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/game.py b/game.py index 0498fa4..c0e1e3e 100644 --- a/game.py +++ b/game.py @@ -15,6 +15,12 @@ class Game(object): def __init__(self): self.deck = Deck() self.last_card = self.deck.draw() + + while self.last_card.special: + self.deck.dismiss(self.last_card) + self.deck.shuffle() + self.last_card = self.deck.draw() + self.logger = logging.getLogger(__name__) def reverse(self):