#! /bin/sh

# permission of this file should be set to be group executable 
# use absolute paths (since another user executes this script):
# NO $HOME or ~/

host=$1
DIR=/game/amoiensis
PLAYER=${DIR}/player    
COACH=${DIR}/coach


cd ${DIR}

${PLAYER} -file "server.conf" -file "player.conf" -host ${host} -port 6000 -UNum 7 X &
sleep 1
${PLAYER} -file "server.conf" -file "player.conf" -host ${host} -port 6000 -UNum 8 X &
sleep 1
${PLAYER} -file "server.conf" -file "player.conf" -host ${host} -port 6000 -UNum 9 X &
sleep 1
${PLAYER} -file "server.conf" -file "player.conf" -host ${host} -port 6000 -UNum 10 X &
sleep 1
${PLAYER} -file "server.conf" -file "player.conf" -host ${host} -port 6000 -UNum 11 X &
sleep 1
${COACH} -host ${host} -file "coach.conf"  &

