From 3ac51d574e65aff9b3420fdebd467d7b98ea1d28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Fri, 8 Dec 2023 12:25:03 +0100 Subject: [PATCH] fix clue cost in ClueStarved variants --- src/hanabi/hanab_game.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hanabi/hanab_game.py b/src/hanabi/hanab_game.py index 94c4a22..239ea65 100644 --- a/src/hanabi/hanab_game.py +++ b/src/hanabi/hanab_game.py @@ -255,9 +255,9 @@ class GameState: def make_action(self, action): match action.type: case ActionType.ColorClue | ActionType.RankClue: - assert self.clues > 0 + assert self.clues >= 1 self.actions.append(action) - self.clues -= self.instance.clue_increment + self.clues -= 1 self._make_turn() # TODO: could check that the clue specified is in fact legal case ActionType.Play: