diff --git a/start-game.sh b/start-game.sh index b2e178a..8568109 100755 --- a/start-game.sh +++ b/start-game.sh @@ -158,8 +158,10 @@ function load_config() { # randomize bot list botnum=$((${#bots[@]} - 1)) newseq=$(shuf -i 0-$botnum) + + BOT_LIST=() for i in ${newseq}; do - export BOT_LIST+=("${bots[$i]}") + BOT_LIST+=("${bots[$i]}") done # make sure log & output dir exists for dir in log output; do @@ -215,7 +217,7 @@ function add_game_server() { hostname: ${GAME_CONTAINER_NAME} restart: no environment: - BOARD_PATH: "/maps/${THIS_MAP}" + BOARD_PATH: "./maps/${THIS_MAP}" TURNS: "${THIS_GAME_TURNS}" TURN_REQUEST_TIMEOUT: "${THIS_GAME_REQ_TIMEOUT}" TIME_BETWEEN_ROUNDS: "${THIS_GAME_TIME_ROUNDS}"