Init gym
This commit is contained in:
18
Run_Player.py
Normal file
18
Run_Player.py
Normal file
@@ -0,0 +1,18 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user