Dribble/Run_Full_Team.py

14 lines
449 B
Python
Raw Normal View History

2024-05-06 19:33:33 +08:00
from scripts.commons.Script import Script
script = Script() # Initialize: load config file, parse arguments, build cpp modules
a = script.args
from agent.Agent import Agent
# Args: Server IP, Agent Port, Monitor Port, Uniform No., Team name, Enable Log, Enable Draw
team_args = ((a.i, a.p, a.m, u, a.t, True, True) for u in range(1,12))
script.batch_create(Agent,team_args)
while True:
script.batch_execute_agent()
script.batch_receive()