#!/bin/bash

# Starts two clients and the server

# export JAVA_OPTS="-Duser.language=fr -Duser.region=FR -Djava.util.logging.config.file=logging.properties"
# export JAVA_OPTS="-Duser.language=en -Duser.region=US -Djava.util.logging.config.file=logging.properties"
export JAVA_OPTS="-Djava.util.logging.config.file=logging.properties"

export CWD=`pwd`/`dirname $0`
cd $CWD/..

./gradlew installDist

cd monopoly/client
build/install/monopoly/bin/monopoly &
sleep 3
build/install/monopoly/bin/monopoly &
cd ../server
build/install/monopoly-server/bin/monopoly-server
