-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathit.sh
More file actions
executable file
·37 lines (32 loc) · 868 Bytes
/
it.sh
File metadata and controls
executable file
·37 lines (32 loc) · 868 Bytes
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
docker rm -vf $(docker ps -a -f name=GAME -q)
mapfile -t maps < <(find ~/.scbw/maps/sscai -name '*.sc?' -printf "sscai/%P\n")
pids=()
function play() {
(
trap "" HUP
game_name="IT_${1// /_}"
rm -rf ~/.scbw/games/GAME_$game_name
map=${maps[$RANDOM % ${#maps[@]} ]}
scbw.play --headless --bots "Marine Hell" "$1" --map "$map" --game_name "$game_name" --timeout_at_frame 86400
) &
pids[${#pids[*]}]=$!
}
#play Stardust
#play PurpleWave
#play BananaBrain
#play Steamhammer
#play "Bryan Weber"
#play "Tomas Cere"
#play "Soeren Klett"
#play "Marek Kadek"
#play "KaonBot"
#play "Black Crow"
#play "Yuanheng Zhu"
play "Jakub Trancik"
for pid in ${pids[*]}; do
wait $pid
done
find ~/.scbw/games -name 'result.json' | grep 'GAME_IT' | xargs grep 'is_crashed": true' > /dev/null
if [ $? -ne 0 ]; then
echo "Failed"
fi