generated from BattlesnakeOfficial/starter-snake-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_games.sh
executable file
·18 lines (14 loc) · 956 Bytes
/
run_games.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
arcade="../rules/battlesnake play -g wrapped -m arcade_maze -W 19 -H 21 -n shai -u http://localhost:8082 -n tiam -u http://localhost:8081 -n local -u http://localhost:8080 --hazardDamagePerTurn 100 --output game_out.txt"
wrapped="../rules/battlesnake play -g wrapped -W 11 -H 11 -n shai -u http://localhost:8082 -n tiam -u http://localhost:8081 -n local -u http://localhost:8080 -v --output game_out.txt"
standard="../rules/battlesnake play -g standard -W 11 -H 11 -n shai -u http://localhost:8082 -n tiam -u http://localhost:8081 -n local -u http://localhost:8080 -v --output game_out.txt"
gameResults=()
for i in {0..29}
do
$(../rules/battlesnake play -g wrapped -m arcade_maze -W 19 -H 21 -n tiam -u http://localhost:8081 -n local -u http://localhost:8080 --hazardDamagePerTurn 100 --output game_out.txt -v)
gameResults[$i]=$(cat game_out.txt | tail -1)
done
echo "${gameResults}"
for gr in ${gameResults[@]}; do
echo "${gr}"
done