teams are ut or the ones in the agents directory''')
p.add_option('-s','--no-sync',dest='sync',action='store_false',default=True,help='run server in non-sync mode')
p.add_option('--headless',dest='headless',action='store_true',default=False,help='run in headless mode')
p.add_option('-a','--adhoc',dest='useAdhoc',action='store_true',default=False,help='use an adhoc agent')
p.add_option('-d','--adhocDefense',dest='adhocOffense',action='store_false',default=True,help='put the ad hoc agent on defense')
p.add_option('-n','--numTrials',dest='numTrials',action='store',type='int',default=-1,help='number of trials to run')
p.add_option('-f','--frames',dest='numFrames',action='store',type='int',default=-1,help='number of frames to run for')
p.add_option('--offense',dest='numOffense',action='store',type='int',default=4,help='number of offensive players')
p.add_option('--defense',dest='numDefense',action='store',type='int',default=4,help='number of defensive players (excluding the goalie)')
p.add_option('--learn-actions',dest='numLearnActions',action='store',type='int',default=0,help='number of instances to learn actions instead of the regular behavior')
options,args=p.parse_args()
iflen(args)>2:
print'Incorrect number of arguments'
p.parse_args(['--help'])
sys.exit(2)
options.learnActions=(options.numLearnActions>0)
team1='ut'
team2='ut'
iflen(args)>=1:
team1=args[0]
iflen(args)>=2:
team2=args[1]
seed=int(time.time())
rng=numpy.random.RandomState(seed)
main(team1,team2,rng,options)
importargparse
p=argparse.ArgumentParser(description='Start Half Field Offense.')