original_docstring: Command for starting a game.
docstring: Command for starting a game.
docstring_tokens: Command for starting a game .
code: def startgame(script, match_mode='autobalance', point_count='1'):
      """Command for starting a game."""
      ctfscript = script.server.scripts.capture_the_flag
      match_mode = match_mode.lower()
      if match_mode != 'autobalance' and match_mode != 'choose':
          return "There is no matchmaking mode named '%s'." % \
              match_mode
      else:
          p = None
          try:
              p = int(point_count)
          except ValueError:
              p = None
          if p is None:
              return 'Could not parse %s.' % point_count
          else:
              if p <= 0:
                  return 'You need at least on point to win.'
              else:
                  return ctfscript.game_state.startgame(match_mode, p)
code_tokens: def startgame ( script , match_mode = 'autobalance' , point_count = '1' ) : ctfscript = script . server . scripts . capture_the_flag match_mode = match_mode . lower ( ) if match_mode != 'autobalance' and match_mode != 'choose' : return "There is no matchmaking mode named '%s'." % match_mode else : p = None try : p = int ( point_count ) except ValueError : p = None if p is None : return 'Could not parse %s.' % point_count else : if p <= 0 : return 'You need at least on point to win.' else : return ctfscript . game_state . startgame ( match_mode , p )
short_docstring: Command for starting a game.
short_docstring_tokens: Command for starting a game .
comment: """Command for starting a game."""