fix clue cost in ClueStarved variants

This commit is contained in:
Maximilian Keßler 2023-12-08 12:25:03 +01:00
parent daea750535
commit 3ac51d574e
Signed by: max
GPG key ID: BCC5A619923C0BA5

View file

@ -255,9 +255,9 @@ class GameState:
def make_action(self, action): def make_action(self, action):
match action.type: match action.type:
case ActionType.ColorClue | ActionType.RankClue: case ActionType.ColorClue | ActionType.RankClue:
assert self.clues > 0 assert self.clues >= 1
self.actions.append(action) self.actions.append(action)
self.clues -= self.instance.clue_increment self.clues -= 1
self._make_turn() self._make_turn()
# TODO: could check that the clue specified is in fact legal # TODO: could check that the clue specified is in fact legal
case ActionType.Play: case ActionType.Play: