More tanks fixes.

This commit is contained in:
Paul S. Ferrell 2009-10-07 13:58:23 -06:00
parent 597323eb36
commit ca86e03fd3
3 changed files with 6 additions and 2 deletions

View File

@ -3,12 +3,16 @@ INSTALL = $(FAKE) install -o 100
all: tanks.tce
push: tanks.tce
netcat -l -q 0 -p 3333 < tanks.tce
tanks.tce: target
$(FAKE) sh -c 'cd target && tar -czf - .' > $@
target:
$(INSTALL) -d target/var/lib/tanks/
$(INSTALL) -d target/var/lib/tanks/results/
$(INSTALL) -d target/var/lib/tanks/errors/
$(INSTALL) -d target/var/lib/tanks/ai/easy
$(INSTALL) -d target/var/lib/tanks/ai/medium
$(INSTALL) -d target/var/lib/tanks/ai/hard

View File

@ -395,7 +395,7 @@ class Pflanzarr:
except:
colors[team] = errorColor
return teams
return colors
def _getGameNum(self):
"""Figure out what game number this is from the past games played."""

View File

@ -7,7 +7,7 @@ T = 60*5
try:
while 1:
start = time.time()
p = Pflanzarr(sys.argv[1], sys.argv[2])
p = Pflanzarr.Pflanzarr(sys.argv[1], sys.argv[2])
p.run(int(sys.argv[3]))
diff = time.time() - start