original_docstring:  State machine transition to finished. 
docstring: State machine transition to finished.
docstring_tokens: State machine transition to finished .
code: def _transition_to_finished(self):
          """ State machine transition to finished. """
  
          assert self._game_state == GameState.STARTED
  
          log.info("Ending game")
          self._game_state = GameState.FINISHED
code_tokens: def _transition_to_finished ( self ) : assert self . _game_state == GameState . STARTED log . info ( "Ending game" ) self . _game_state = GameState . FINISHED
short_docstring: State machine transition to finished.
short_docstring_tokens: State machine transition to finished .
comment: """ State machine transition to finished. """