Tanks fixes.

This commit is contained in:
Paul S. Ferrell 2009-10-07 13:53:51 -06:00
parent c2c763d2b3
commit 597323eb36
5 changed files with 7 additions and 4 deletions

1
.gitignore vendored
View File

@ -2,6 +2,7 @@
*.pyc
*.dat
*.swp
*.tce
passwd
fake
target/

View File

@ -24,7 +24,7 @@ target:
$(INSTALL) lib/* target/usr/lib/python2.6/site-packages/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) log.run target/var/service/tanks/log/run

View File

@ -80,7 +80,7 @@ class Pflanzarr:
if player == None:
color = '#a0a0a0'
else:
color =
color = colors[player]
tank = Tank.Tank( player, (startX, startY), color,
self._board, testMode=True)
if player == None:

View File

@ -4,5 +4,5 @@
ln -s /var/lib/tanks /usr/lib/www/tanks/results
envuidgid ctf python2.6 run_tanks.py /var/lib/tanks/ easy 100 2>&1 &
envuidgid ctf report_score.py 2>&1
exec envuidgid ctf python2.6 run_tanks.py /var/lib/tanks/ easy 100 2>&1 &
#envuidgid ctf report_score.py 2>&1

View File

@ -15,6 +15,8 @@ try:
time.sleep( diff - T )
except:
import traceback
traceback.print_exc()
print 'Usage: python2.6 run_tanks.py data_dir easy|medium|hard max_turns'