This repository has been archived by the owner on Aug 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.sh
executable file
·80 lines (78 loc) · 2.85 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#!/usr/bin/env bash
docker rm -vf $(docker ps -a -f name=GAME -q)
cp build/libs/FFT_TER-all-1.0-SNAPSHOT.jar ~/.scbw/bots/StyxZ/AI/
mapfile -t maps < <(find ~/.scbw/maps/sscai -name '*.sc?' -printf "sscai/%P\n")
cp ~/.scbw/bots/StyxZ/botd.json ~/.scbw/bots/StyxZ/bot.json
#cp ~/.scbw/bots/StyxZ/botb.json ~/.scbw/bots/StyxZ/bot.json
rm ~/.scbw/maps/replays/*
function play() {
(
trap "" HUP
echo 'START'
game_name=${1// /_}
rm -rf ~/.scbw/games/GAME_$game_name
map=${maps[$RANDOM % ${#maps[@]} ]}
echo "Playing vs $1 on $map"
scbw.play --headless --read_overwrite --bots StyxZ "$1" --timeout_at_frame 28000 --game_name $game_name --map "$map"
#scbw.play --read_overwrite --bots StyxZ "$1" --timeout_at_frame 28000 --game_name $game_name --map "$map"
mkdir ~/cherryvis-docker/replays/$game_name.rep.cvis
cp ~/.scbw/games/GAME_$game_name/write_0/trace.json ~/cherryvis-docker/replays/$game_name.rep.cvis/
cp ~/.scbw/games/GAME_$game_name/player_0.rep ~/cherryvis-docker/replays/$game_name.rep
echo 'DONE'
) &
}
#nohup scbw.play --headless --bots StyxZ "Bryan Weber" --timeout_at_frame 43200 --game_name shark&
#nohup scbw.play --headless --bots StyxZ "McRaveZ" --timeout_at_frame 43200 --game_name shark&
# nohup scbw.play --headless --bots StyxZ MadMixT --timeout_at_frame 43200 --game_name shark&
#nohup scbw.play --headless --bots StyxZ "PurpleSwarm" --timeout_at_frame 43200 --game_name shark&
# nohup scbw.play --headless --bots StyxZ "lol" --timeout_at_frame 43200 --game_name shark&
# nohup scbw.play --headless --bots StyxZ "Simon Prins" --timeout_at_frame 43200 --game_name shark&
#nohup scbw.play --headless --bots StyxZ Locutus --timeout_at_frame 43200 --game_name shark&
# nohup scbw.play --headless --bots StyxZ Antiga --timeout_at_frame 43200 --game_name shark&
#nohup scbw.play --headless --bots StyxZ 'Chris Coxe' --timeout_at_frame 43200 --game_name shark&
#nohup scbw.play --headless --bots StyxZ "Stone" --timeout_at_frame 43200 --game_name shark&
#nohup scbw.play --headless --bots StyxZ tscmoo --timeout_at_frame 43200 --game_name shark&
# nohup scbw.play --headless --bots StyxZ WuliBot --timeout_at_frame 43200 --game_name shark&
#nohup scbw.play --headless --bots StyxZ "Andrew Smith" --timeout_at_frame 43200 --game_name shark&
#play CUBOT
#play Stone
#play McRaveZ
play 'Chris Coxe'
#play Antiga
# play tscmoo
#play tscmoop2
#play WuliBot
#play TyrProtoss
#play 'Tomas Vajda'
#play McRave
#play ZurZurZur
# play Flash
#play 'Simon Prins'
#play Bereaver
#play WillBot
#play Crona
#play Ecgberht
#play Microwave
#play ZNZZBot
# play GuiBot
#play Feint
#play PurpleSwarm
#play Dragon
#play WillyT
#play ICELab
# Top 12
#play krasi0
#play Locutus
#play PurpleWave
#play adias
#play BananaBrain
#play 'Hao Pan'
#play Microwave
#play 'Iron bot'
#play AntigaZ
#play Steamhammer
#play 'Marian Devecka'
#play ChimeraBot
#play Antiga
#play Proxy
sleep 5