From: Sam Moore Date: Sat, 28 Apr 2012 14:34:40 +0000 (+0800) Subject: Reduced of moves before DRAW_DEFAULT X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=df9b2d14b2e4e5ea2e99614e44151295bcf4956c;p=progcomp2012.git Reduced of moves before DRAW_DEFAULT Done in simulate.py Will now run two rounds to complete the three rounds of the first Preliminary round. Round and round the something bush, the monkey chased the weasel... --- diff --git a/agents/basic_java/basic_java.hack b/agents/basic_java/basic_java.hack index f148fbc..9eb90d0 100755 --- a/agents/basic_java/basic_java.hack +++ b/agents/basic_java/basic_java.hack @@ -1,2 +1,4 @@ #!/bin/bash -exec java BasicAI.class +CANNONPATH=`readlink -f "$0"` +cd "`dirname "$CANNONPATH"`" +exec java BasicAI diff --git a/judge/simulator/simulate.py b/judge/simulator/simulate.py index d8db775..e87259e 100755 --- a/judge/simulator/simulate.py +++ b/judge/simulator/simulate.py @@ -258,7 +258,8 @@ for roundNumber in range(totalRounds, totalRounds + nRounds): logFile = logDirectory + "round"+str(roundNumber) + "/"+red["name"]+".vs."+blue["name"]+"."+str(gameID) errorLog = [logDirectory + "error/" + red["name"] + "."+str(gameID), logDirectory + "error/" + blue["name"] + "."+str(gameID)] #Run the game, outputting to logFile; stderr of (both) AI programs is directed to logFile.stderr - outline = os.popen(managerPath + " -o " + logFile + " -T " + str(timeoutValue) + " \"" + red["path"] + "\" \"" + blue["path"] + "\" 2>> " + logFile+".stderr", "r").read() + outline = os.popen(managerPath + " -m 1000 -o " + logFile + " -T " + str(timeoutValue) + " \"" + red["path"] + "\" \"" + blue["path"] + "\" 2>> " + logFile+".stderr", "r").read() + #os.system("mv tmp.mp4 " + logFile + ".mp4") #If there were no errors, get rid of the stderr file