From ad02585819d1ef8bc1b136af1bb10dad4fb1c242 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Sat, 11 May 2019 11:08:31 +0300 Subject: [PATCH] Rando can require at min 0 cards --- gameloop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gameloop.py b/gameloop.py index 77bf280..4725496 100644 --- a/gameloop.py +++ b/gameloop.py @@ -48,7 +48,7 @@ class Rando: self.message = None def num_need_cards(self, num_blanks): - return num_blanks - len(self.hand) + self.hand.count(None) + return max(num_blanks - len(self.hand) + self.hand.count(None), 0) def give_cards(self, cards): self.hand.extend(cards)