#!/bin/bash

othargs="-depth 6 -endDepth 12 -black ios -white machine -noprint"

if [ $# -gt 0 ]; then
    othargs=$*
fi

i=0
while true; do
    if [ $[i % 2] -eq 0 ]; then
	eval ./othello $othargs -rand
    else
	eval ./othello $othargs -wait
    fi
    echo "Done with game $i"
    i=$[i + 1]
done

