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