From ca86e03fd3c6f244dc4d13bbdfc62d47842ebb9c Mon Sep 17 00:00:00 2001 From: "Paul S. Ferrell" Date: Wed, 7 Oct 2009 13:58:23 -0600 Subject: [PATCH] More tanks fixes. --- tanks/Makefile | 4 ++++ tanks/lib/Pflanzarr.py | 2 +- tanks/run_tanks.py | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tanks/Makefile b/tanks/Makefile index dd24893..26715cd 100644 --- a/tanks/Makefile +++ b/tanks/Makefile @@ -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 diff --git a/tanks/lib/Pflanzarr.py b/tanks/lib/Pflanzarr.py index 1e05626..0922d49 100644 --- a/tanks/lib/Pflanzarr.py +++ b/tanks/lib/Pflanzarr.py @@ -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.""" diff --git a/tanks/run_tanks.py b/tanks/run_tanks.py index e82be10..47b31ed 100644 --- a/tanks/run_tanks.py +++ b/tanks/run_tanks.py @@ -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