-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.sh
executable file
·55 lines (51 loc) · 1.58 KB
/
test.sh
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash -e
./build.sh
# MAP='aiide/(2)Benzene.scx'
# MAP='aiide/(2)Destination.scx'
# MAP='aiide/(2)HeartbreakRidge.scx'
# MAP='aiide/(2)PolarisRhapsody.scx'
# MAP='aiide/(3)Aztec.scx'
# MAP='aiide/(3)Longinus2.scx'
# MAP='aiide/(3)TauCross.scx'
# MAP='aiide/(4)Andromeda.scx'
# MAP='aiide/(4)CircuitBreaker.scx'
# MAP='aiide/(4)EmpireoftheSun.scm'
# MAP='aiide/(4)FightingSpirit.scx'
# MAP='aiide/(4)Fortress.scx'
# MAP='aiide/(4)Python.scx'
# MAP='aiide/(4)Roadkill.scm'
MAP='(2)Fastest.scm'
# BOT='Pylon Puller'
# BOT='ICELab'
# BOT='ZurZurZur'
# BOT='Zealot Hell'
# BOT='Steamhammer'
# BOT='Microwave'
# BOT='Bryan Weber'
# BOT='Stardust'
# BOT='BananaBrain'
# BOT='PurpleWave'
# BOT='Dragon'
# BOT='KasoBot'
# BOT='Crona'
BOT='NiteKatT'
# BOT='Ecgberht'
# BOT='MadMixP'
# BOT='Flash'
# BOT='CUBOT'
# BOT='Sijia Xu'
# BOT='McRaveZ'
GAME_NAME="$(expr "$BOT" : '\([A-Za-z0-9]\{4\}\)')_$(expr "$MAP" : '.*)\([A-Za-z0-9]\{4\}\)')"
REPLAY_NAME="$GAME_NAME.rep"
# Docker
# rm -rf ~/.scbw/games/GAME_"$GAME_NAME"
# scbw.play --headless --bots styx_z "$BOT" --map "$MAP" --game_name "$GAME_NAME" --timeout_at_frame 30000 --read_overwrite || true
# # scbw.play --headless --bots styx_z "$BOT" --map "$MAP" --game_name "$GAME_NAME" --timeout_at_frame 1000 --read_overwrite || true
# cp ~/.scbw/games/GAME_"$GAME_NAME"/player_0.rep ~/cherryvis-docker/replays/"$REPLAY_NAME"
# mkdir ~/cherryvis-docker/replays/"$REPLAY_NAME".cvis 2>/dev/null || true
# cp -r ~/.scbw/games/"GAME_$GAME_NAME"/write_0/cvis/* ~/cherryvis-docker/replays/"$REPLAY_NAME".cvis/
#
# BWAIShotgun
pushd ~/rustprojects/BWAIShotgun
cargo r
popd