Example #1
0
 def create_agent_configurations(config: ConfigObject):
     params = config.get_header(BOT_CONFIG_AGENT_HEADER)
     params.add_value('flip_turning',
                      bool,
                      default=False,
                      description='if true bot will turn opposite way')
     params.add_value('test_rendering',
                      bool,
                      default=False,
                      description='if true bot will render random stuff')
     params.add_value('test_quickchat',
                      bool,
                      default=False,
                      description='if true bot will spam quickchats')
     params.add_value('test_dropshot',
                      bool,
                      default=False,
                      description='if true bot will render dropshot info')
     params.add_value('test_state',
                      bool,
                      default=False,
                      description='if true bot will alter its game state')
     params.add_value('test_ball_prediction',
                      bool,
                      default=False,
                      description='if true bot will render ball prediction')
     params.add_value('test_physics_tick',
                      bool,
                      default=False,
                      description='if true bot will render ball prediction')
Example #2
0
 def create_agent_configurations(config: ConfigObject):
     params = config.get_header(BOT_CONFIG_AGENT_HEADER)
     params.add_value(
         'java_executable_path',
         str,
         default=None,
         description='Relative path to the executable that runs java.')
Example #3
0
 def create_agent_configurations(config: ConfigObject):
     super(TeacherAgent, TeacherAgent).create_agent_configurations(config)
     params = config.get_header(BOT_CONFIG_AGENT_HEADER)
     params.add_value('teacher_path',
                      str,
                      default=os.path.join('agents', 'cool_atba',
                                           'cool_atba_agent.py'),
                      description='Path to the teacher bot')
Example #4
0
 def create_agent_configurations(config: ConfigObject):
     params = config.get_header(BOT_CONFIG_AGENT_HEADER)
     params.add_value('port', int, default=42008,
                      description='Port to use for websocket communication')
     params.add_value('spawn_browser', bool, default=False,
                      description='True if we should automatically open google chrome to the scratch page.')
     params.add_value('sb3file', str, default=None,
                      description='Location of the scratch .sb3 file to load automatically')
     params.add_value('headless', bool, default=False,
                      description='If true, bot will run automatically with no visible web browser')
Example #5
0
 def create_agent_configurations(config: ConfigObject):
     super(SwarmAgent, SwarmAgent).create_agent_configurations(config)
     params = config.get_header(BOT_CONFIG_AGENT_HEADER)
     params.add_value('model_path',
                      str,
                      default=os.path.join('models', 'cool_atba.mdl'),
                      description='Path to the model file')
     params.add_value('load_model',
                      bool,
                      default=False,
                      description='The model should be loaded')
 def create_agent_configurations(config: ConfigObject) -> None:
     params: ConfigHeader = config.get_header(BOT_CONFIG_AGENT_HEADER)
     params.add_value("ip",
                      str,
                      default="127.0.0.1",
                      description="The IP address of the host machine")
     params.add_value(
         "port",
         int,
         default=5555,
         description="The port of the host machine that should be used")
Example #7
0
 def create_agent_configurations(config: ConfigObject):
     params = config.get_header(BOT_CONFIG_AGENT_HEADER)
     params.add_value('flip_turning',
                      bool,
                      default=False,
                      description='if true bot will turn opposite way')
     params.add_value('test_rendering',
                      bool,
                      default=False,
                      description='if true bot will render random stuff')
     params.add_value('test_quickchat',
                      bool,
                      default=False,
                      description='if true bot will spam quickchats')
Example #8
0
 def create_agent_configurations(config: ConfigObject):
     params = config.get_header(BOT_CONFIG_AGENT_HEADER)
     params.add_value('port',
                      int,
                      default=42008,
                      description='Port to use for websocket communication')
     params.add_value(
         'spawn_browser',
         bool,
         default=False,
         description=
         'True if we should automatically open google chrome to the scratch page.'
     )
     params.add_value(
         'sb3file',
         str,
         default=None,
         description=
         'Location of the scratch .sb3 file to load automatically')
     params.add_value(
         'headless',
         bool,
         default=False,
         description=
         'If true, bot will run automatically with no visible web browser')
     params.add_value(
         'separate_browsers',
         bool,
         default=False,
         description=
         'If true, each bot will get its own separate browser instance '
         'and pretend to be player 1. Works best with spawn_browser = True.'
     )
     params.add_value(
         'pretend_blue_team',
         bool,
         default=False,
         description=
         "If true, and if your bots in the browser all on orange, we will pretend in "
         "Scratch that they're on the blue team.")
Example #9
0
 def create_agent_configurations(config: ConfigObject):
     params = config.get_header(BOT_CONFIG_AGENT_HEADER)
     params.add_value('path',
                      str,
                      description='The path to the exe for the bot')
Example #10
0
 def create_agent_configurations(config: ConfigObject):
     params = config.get_header(BOT_CONFIG_AGENT_HEADER)
     params.add_value("hover_min_height", int, default=140)
Example #11
0
 def create_agent_configurations(config: ConfigObject):
     params = config.get_header(BOT_CONFIG_AGENT_HEADER)
     params.add_value('render_statue', bool, default=False)
Example #12
0
 def create_agent_configurations(config: ConfigObject):
     super(TorchModelAgent, TorchModelAgent).create_agent_configurations(config)
     params = config.get_header(BOT_CONFIG_AGENT_HEADER)
     params.add_value('model_path', str, default=os.path.join('models', 'cool_atba.mdl'),
                      description='Path to the model file')