mirror of https://github.com/dirtbags/moth.git
Tanks fixes.
This commit is contained in:
parent
c2c763d2b3
commit
597323eb36
|
@ -2,6 +2,7 @@
|
||||||
*.pyc
|
*.pyc
|
||||||
*.dat
|
*.dat
|
||||||
*.swp
|
*.swp
|
||||||
|
*.tce
|
||||||
passwd
|
passwd
|
||||||
fake
|
fake
|
||||||
target/
|
target/
|
||||||
|
|
|
@ -24,7 +24,7 @@ target:
|
||||||
$(INSTALL) lib/* target/usr/lib/python2.6/site-packages/tanks/
|
$(INSTALL) lib/* target/usr/lib/python2.6/site-packages/tanks/
|
||||||
|
|
||||||
$(INSTALL) -d target/var/service/tanks
|
$(INSTALL) -d target/var/service/tanks
|
||||||
$(INSTALL) run target/var/service/tanks/run
|
$(INSTALL) run run_tanks.py target/var/service/tanks/
|
||||||
|
|
||||||
$(INSTALL) -d target/var/service/tanks/log/
|
$(INSTALL) -d target/var/service/tanks/log/
|
||||||
$(INSTALL) log.run target/var/service/tanks/log/run
|
$(INSTALL) log.run target/var/service/tanks/log/run
|
||||||
|
|
|
@ -80,7 +80,7 @@ class Pflanzarr:
|
||||||
if player == None:
|
if player == None:
|
||||||
color = '#a0a0a0'
|
color = '#a0a0a0'
|
||||||
else:
|
else:
|
||||||
color =
|
color = colors[player]
|
||||||
tank = Tank.Tank( player, (startX, startY), color,
|
tank = Tank.Tank( player, (startX, startY), color,
|
||||||
self._board, testMode=True)
|
self._board, testMode=True)
|
||||||
if player == None:
|
if player == None:
|
||||||
|
|
|
@ -4,5 +4,5 @@
|
||||||
|
|
||||||
ln -s /var/lib/tanks /usr/lib/www/tanks/results
|
ln -s /var/lib/tanks /usr/lib/www/tanks/results
|
||||||
|
|
||||||
envuidgid ctf python2.6 run_tanks.py /var/lib/tanks/ easy 100 2>&1 &
|
exec envuidgid ctf python2.6 run_tanks.py /var/lib/tanks/ easy 100 2>&1 &
|
||||||
envuidgid ctf report_score.py 2>&1
|
#envuidgid ctf report_score.py 2>&1
|
||||||
|
|
|
@ -15,6 +15,8 @@ try:
|
||||||
time.sleep( diff - T )
|
time.sleep( diff - T )
|
||||||
|
|
||||||
except:
|
except:
|
||||||
|
import traceback
|
||||||
|
traceback.print_exc()
|
||||||
print 'Usage: python2.6 run_tanks.py data_dir easy|medium|hard max_turns'
|
print 'Usage: python2.6 run_tanks.py data_dir easy|medium|hard max_turns'
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue