diff --git a/src/hanabi/hanab_game.py b/src/hanabi/hanab_game.py index 8bf9bed..151a6c8 100644 --- a/src/hanabi/hanab_game.py +++ b/src/hanabi/hanab_game.py @@ -267,8 +267,13 @@ class GameState: case ActionType.Discard: self.discard(action.target) case ActionType.EndGame | ActionType.VoteTerminate: + self.actions.append(action) self.over = True + def terminate(self): + action = Action(ActionType.EndGame, 0, 0) + self.make_action(action) + # Forward some properties of the underlying instance @property def num_players(self):