mirror of https://github.com/dirtbags/moth.git
More tanks fixes.
This commit is contained in:
parent
597323eb36
commit
ca86e03fd3
|
@ -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
|
||||
|
|
|
@ -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."""
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue