Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Play engine vs engine in Linux

Author: Andreas Guettinger

Date: 10:18:36 12/05/05

Go up one level in this thread


On December 05, 2005 at 07:54:03, Martin Andersen2 wrote:

>I was wondering if it's possible to play
>engine vs engine (ponder off) in Linux.
>It should be automatic and the games written to pgn.
>
>I have looked at jose 1.4, but it doesn't seem to have this feature.
>Maybe xboard, although no UCI engine support there, and I would like
>to test Toga II, Rybka and Fruit.
>
>Martin.

Another possibility (maybe not so flexible as Alessandros) is via alias.
I added the following line to my .bashrc:

alias match1='xboard -tc 60 -inc 10 -thinking -xponder -xbuttons -mg 4 -sgf
match.pgn'

- tc 60 means 60 min per game
- inc 10 means 10s increment per move (if you done't want put -inc 0 or -mps XX)
- mps 40 (would means 40 moves per session)
- thinking (show PV while thinking)
- xponder (don't think during opponents move)
- mg 4 (play 4 games per match)
- sgf match.pgn (save games as pgn in match.pgn)
... these are only the most important options

then when starting the match you just have to specify path and engine.
For xboard engines:

match1 -fd firstDir -fcp EngineA -sd secondDir -scp EngineB

or for uci engines:

match1 -fd polyglotDir -fcp 'polyglot engineA.ini' -sd polyglotDir -scp
'polyglot engineB.ini'

As another possibility you can put allmost all xboard options in the .Xresources
file (see manpage of xboard), e.g.:

! xboard resources
xboard*timeControl: 60
xboard*timeIncrement: 10
xboard*ponderNextMove: false
xboard*matchGames: 10
xboard*saveGameFile: match.pgn
xboard*showButtonBar: false
xboard*showThinking: true
xboard*autoCallFlag: true
xboard*internetChessServerHost: chessclub.com
xboard*colorizeMessages: true
xboard*boardSize: Average
xboard*titleInWindow: true
xboard*highlightLastMove: true
xboard*whitePieceColor: #ffffff
xboard*blackPieceColor: #1d1d1d
xboard*lightSquareColor: #ccbda4
xboard*darkSquareColor: #a88964
xboard*internetChessServerInputBox: true

Don't forget to reload the .Xresources after changing them with:

xrdb -load .Xresources

regards
Andy



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.