#!/bin/bash

DIR=$( cd $(dirname "${BASH_SOURCE[0]}") && pwd )
cd "$DIR/.."

set -ex

cargo build --release

BROWN="brown"
IOMRASCALAI="./target/release/iomrascalai -e $1 -l"
SIZE=9
TIME="5m"

TWOGTP="gogui-twogtp -black \"$BROWN\" -white \"$IOMRASCALAI\" -verbose -size $SIZE -time $TIME"
gogui -computer-both -program "$TWOGTP" -size $SIZE
