From d6d758b58467b830244d9bc1f0f14a200e70d526 Mon Sep 17 00:00:00 2001 From: Jake Pullen Date: Sun, 12 May 2024 21:50:02 +0100 Subject: [PATCH] need to fix announcements for suit/values --- player.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/player.py b/player.py index e639986..c0baab6 100644 --- a/player.py +++ b/player.py @@ -20,13 +20,13 @@ class player: def discard(self): return self.hand.pop() - def command(self, suit, value, card_count): + def command(self, suit, value): rules = json.load(open('rules.json')) commands = [] #chance to return the wrong command if random.random() < error_chance: commands.append('wrong command') - print(f'generating command for {card_count} cards, {suit} and {value}') + print(f'generating command for {len(self.hand)} cards, {suit} and {value}') for rule in rules: if 'suit' in rule and rule['suit'] == suit: commands.append(rule['command'])