Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Play engine vs engine in Linux

Author: Alessandro Scotti

Date: 05:52:42 12/05/05

Go up one level in this thread


Hi Martin,
you can definitely do that with xboard. Here's a sample script that will play a
two games match between Kiwi and Glaurung (a UCI engine) from any Noomen
position. For clarity I've resolved most variables here, that could be passed by
command line options.
The script is only for convenience of course, eventually everything resolves
into a single call to xboard.

XBOARD_HOME="/home/ascotti/xboard-4.2.7"
XBOARD="$XBOARD_HOME/xboard"
XBOARD_OPTIONS="-tc 2 -inc 1 -mps 40 -xponder -mg 4 -debug -xexit -size Tiny
-iconic -xanimate -autoflag"

FCP_DIR="/home/ascotti/Kiwi/obj"
FCP_BIN="kiwi"
SCP_DIR="/home/ascotti/Kiwi/polyglot"
SCP_BIN="polyglot"

POLYGLOT_INI="glaurung"

GAMEFILE="/home/ascotti/Kiwi/Noomen.pgn"
GAMEFILE_POSITION=1

if [ -n "$1" ]
then
    GAMEFILE_POSITION=$1
fi

$XBOARD -fcp $FCP_DIR/$FCP_BIN -fd $FCP_DIR -sd $SCP_DIR -scp "./polyglot
$POLYGLOT_INI.ini" $XBOARD_OPTIONS -lgf $GAMEFILE -lgi $GAMEFILE_POSITION -sgf
xb_game.$GAMEFILE_POSITION > xb_debug.$GAMEFILE_POSITION 2>&1



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.