#!/bin/bash

if [ $# -eq 2 ]; then
	challenger=/goinfre/${2}.so
else
	challenger=$HOME/cxx/champion.so
fi

cat > /tmp/config.yml <<EOF
rules: libprologin2013.so
map: $HOME/maps/${1}.map
verbose: 3
clients:
  - $HOME/cxx/champion.so
  - $challenger
names:
  - Bleu
  - Rouge
spectators:
  - /usr/local/gui/gui.so
EOF

stechec2-run.py /tmp/config.yml
