-
Notifications
You must be signed in to change notification settings - Fork 6
/
run
executable file
·36 lines (29 loc) · 1.32 KB
/
run
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# The tron robots can be run in various ways.
# --- single game examples ---
#
# 1. A duel between two bots
# shown in terminal animation display at five frames per second.
./engines/round.py --FPS=5 -v -B maps/empty-room.txt bots/logbot.py bots/wallbot.py
# The flags are
# -v verbose, i.e. show each move
# -i interactive
# -B board file
#
# 1b. ditto, but with the ruby bot.
# ./engines/round.py --FPS=5 -v -B maps/empty-room.txt bots/rubybot.rb bots/wallbot.py
#
# 2. Interactive : press return to see each move
# ./engines/round.py -v -i -B maps/empty-room.txt bots/randbot.py bots/randbot.py
#
# 3. Send game output to a file, for the html/javascript replay visualization tool
# at the url http://csmarlboro.org/tron/replay?game_id=randexample
# ./engines/round.py --replay=games/randexample.tron -B maps/empty-room.txt bots/randbot.py bots/randbot.py
#
# 4. The randlog.py bot sents debug output to logs/log.txt and to replay
# http://csmarlboro.org/tron/replay/replay?game_id=logexample
# ./engines/round.py --replay=games/logexample.tron -B maps/empty-room.txt bots/randbot.py bots/randlog.py
#
# 5. Setting replay name as a date using environment variables
#export gamekey=`date "+%Y-%m-%d_%H:%M:%S"`
#./engines/round.py --replay=games/${gamekey}.tron --FPS=5 -v -B maps/empty-room.txt bots/rand.py bots/rand.py
#