You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Dribble/Run_Player.py

19 lines
648 B
Python

7 months ago
from scripts.commons.Script import Script
script = Script(cpp_builder_unum=1) # Initialize: load config file, parse arguments, build cpp modules
a = script.args
if a.P: # penalty shootout
from agent.Agent_Penalty import Agent
else: # normal agent
from agent.Agent import Agent
# Args: Server IP, Agent Port, Monitor Port, Uniform No., Team name, Enable Log, Enable Draw, Wait for Server, is magmaFatProxy
if a.D: # debug mode
player = Agent(a.i, a.p, a.m, a.u, a.t, True, True, False, a.F)
else:
player = Agent(a.i, a.p, None, a.u, a.t, False, False, False, a.F)
while True:
player.think_and_send()
player.scom.receive()