Skip to content

Instantly share code, notes, and snippets.

@sirmc
Created January 8, 2014 07:50
Show Gist options
  • Save sirmc/8313259 to your computer and use it in GitHub Desktop.
Save sirmc/8313259 to your computer and use it in GitHub Desktop.
# a command that works on Linux/Mac
# the arguments are passed in the same order as in the standard command
MAP=$1
PLAYER1=$2
PLAYER2=$3
MODE=$4
NTURN=$5
MAXT=$6
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
java -jar $DIR/tools/PlayGame.jar $DIR/tools/maps/$MAP "java $PLAYER1 " "java $PLAYER2 " $MODE $NTURN $MAXT | python $DIR/tools/visualizer/visualize_locally.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment