summaryrefslogtreecommitdiff
path: root/tests/import-replay.sh
diff options
context:
space:
mode:
authorJustin Wernick <justin@worthe-it.co.za>2020-04-18 22:17:47 +0200
committerJustin Wernick <justin@worthe-it.co.za>2020-04-18 22:17:47 +0200
commitf3a65c87313d2952f83d5f43327260b7a9ab81cc (patch)
tree9008ab94fbd332903a4c7094e1abc6baba7336ca /tests/import-replay.sh
parent5009074b5ba323e5312e999d766a01120990a61e (diff)
Shortest path on replays
Diffstat (limited to 'tests/import-replay.sh')
-rwxr-xr-xtests/import-replay.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/import-replay.sh b/tests/import-replay.sh
index c2da003..d0130b1 100755
--- a/tests/import-replay.sh
+++ b/tests/import-replay.sh
@@ -14,7 +14,8 @@ for round_folder in $REPLAY_FOLDER/Round*; do
player_folders=( "$round_folder"/* )
player_folder=${player_folders[0]}
opponent_folder=${player_folders[1]}
-
+
+ cp "$round_foler/GlobalState.json" "$OUTPUT_FOLDER/$round_name/GlobalState.json"
cp "$player_folder/JsonMap.json" "$OUTPUT_FOLDER/$round_name/JsonMap.json"
head -n 1 "$player_folder/PlayerCommand.txt" > "$OUTPUT_FOLDER/$round_name/PlayerCommand.txt"
head -n 1 "$opponent_folder/PlayerCommand.txt" > "$OUTPUT_FOLDER/$round_name/OpponentCommand.txt"