XBoard and epd tournament

Discussion of anything and everything relating to chess playing software and machines.

Moderators: bob, hgm, Harvey Williamson

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
Post Reply
vladstamate
Posts: 161
Joined: Thu Jan 08, 2009 8:06 pm
Location: San Francisco, USA
Contact:

XBoard and epd tournament

Post by vladstamate » Sun Jan 31, 2010 10:56 pm

Hi,

I currently use Arena when I want to test my engine against another engine using a set of predefined starting positions (such as Nunn 20).

However I would like to use XBoard/Winboard for this (as well). Is it possible to tell XBoard to start each game picking up a position in a given epd file, and choose a different (next) position from the epd list in each game? How about starting each position with both black and white?

I heard something about cutechess-cli. Will that accomplish what I need?

Kind regards,
Vlad.

Richard Allbert
Posts: 770
Joined: Wed Jul 19, 2006 7:58 am

Re: XBoard and epd tournament

Post by Richard Allbert » Mon Feb 01, 2010 5:53 am

Hi,

Yes you can.

For example.. the following command line..

Code: Select all

c:\Chess\wbx\winboard.exe /mg=2 /cp /lgf c:\Chess\wbx\startpos\nunn.pgn /lgi 1 /tc 1 /inc 1 /sgf=c:\Chess\wbx\save\test.pgn /xreuse /xreuse2 @alarm0931.ini @s_gerbil02.ini
Is one line from my automated toutnament runner.

Key cammands are /lgf to load a pgn file, or use /lpi to load an epd file.

You then use /lgi to load a specific game from the pgn file, or /lpi to load a specific game from an epd file.

Code: Select all

c:\Chess\wbx\winboard.exe /mg=2 /cp /lgf c:\Chess\wbx\startpos\nunn.pgn /lgi 1 /tc 1 /inc 1 /sgf=c:\Chess\wbx\save\test.pgn /xreuse /xreuse2 @alarm0931.ini @s_gerbil02.ini
c:\Chess\wbx\winboard.exe /mg=2 /cp /lgf c:\Chess\wbx\startpos\nunn.pgn /lgi 1 /tc 1 /inc 1 /sgf=c:\Chess\wbx\save\test.pgn /xreuse /xreuse2 @alarm0931.ini @s_latista.ini
c:\Chess\wbx\winboard.exe /mg=2 /cp /lgf c:\Chess\wbx\startpos\nunn.pgn /lgi 1 /tc 1 /inc 1 /sgf=c:\Chess\wbx\save\test.pgn /xreuse /xreuse2 @alarm0931.ini @s_wing.ini
c:\Chess\wbx\winboard.exe /mg=2 /cp /lgf c:\Chess\wbx\startpos\nunn.pgn /lgi 1 /tc 1 /inc 1 /sgf=c:\Chess\wbx\save\test.pgn /xreuse /xreuse2 @gerbil02.ini @s_latista.ini
c:\Chess\wbx\winboard.exe /mg=2 /cp /lgf c:\Chess\wbx\startpos\nunn.pgn /lgi 1 /tc 1 /inc 1 /sgf=c:\Chess\wbx\save\test.pgn /xreuse /xreuse2 @gerbil02.ini @s_wing.ini
c:\Chess\wbx\winboard.exe /mg=2 /cp /lgf c:\Chess\wbx\startpos\nunn.pgn /lgi 1 /tc 1 /inc 1 /sgf=c:\Chess\wbx\save\test.pgn /xreuse /xreuse2 @latista.ini @s_wing.ini
c:\Chess\wbx\winboard.exe /mg=2 /cp /lgf c:\Chess\wbx\startpos\nunn.pgn /lgi 2 /tc 1 /inc 1 /sgf=c:\Chess\wbx\save\test.pgn /xreuse /xreuse2 @alarm0931.ini @s_gerbil02.ini
c:\Chess\wbx\winboard.exe /mg=2 /cp /lgf c:\Chess\wbx\startpos\nunn.pgn /lgi 2 /tc 1 /inc 1 /sgf=c:\Chess\wbx\save\test.pgn /xreuse /xreuse2 @alarm0931.ini @s_latista.ini
c:\Chess\wbx\winboard.exe /mg=2 /cp /lgf c:\Chess\wbx\startpos\nunn.pgn /lgi 2 /tc 1 /inc 1 /sgf=c:\Chess\wbx\save\test.pgn /xreuse /xreuse2 @alarm0931.ini @s_wing.ini
c:\Chess\wbx\winboard.exe /mg=2 /cp /lgf c:\Chess\wbx\startpos\nunn.pgn /lgi 2 /tc 1 /inc 1 /sgf=c:\Chess\wbx\save\test.pgn /xreuse /xreuse2 @gerbil02.ini @s_latista.ini
c:\Chess\wbx\winboard.exe /mg=2 /cp /lgf c:\Chess\wbx\startpos\nunn.pgn /lgi 2 /tc 1 /inc 1 /sgf=c:\Chess\wbx\save\test.pgn /xreuse /xreuse2 @gerbil02.ini @s_wing.ini
c:\Chess\wbx\winboard.exe /mg=2 /cp /lgf c:\Chess\wbx\startpos\nunn.pgn /lgi 2 /tc 1 /inc 1 /sgf=c:\Chess\wbx\save\test.pgn /xreuse /xreuse2 @latista.ini @s_wing.ini
c:\Chess\wbx\winboard.exe /mg=2 /cp /lgf c:\Chess\wbx\startpos\nunn.pgn /lgi 3 /tc 1 /inc 1 /sgf=c:\Chess\wbx\save\test.pgn /xreuse /xreuse2 @alarm0931.ini @s_gerbil02.ini
c:\Chess\wbx\winboard.exe /mg=2 /cp /lgf c:\Chess\wbx\startpos\nunn.pgn /lgi 3 /tc 1 /inc 1 /sgf=c:\Chess\wbx\save\test.pgn /xreuse /xreuse2 @alarm0931.ini @s_latista.ini
c:\Chess\wbx\winboard.exe /mg=2 /cp /lgf c:\Chess\wbx\startpos\nunn.pgn /lgi 3 /tc 1 /inc 1 /sgf=c:\Chess\wbx\save\test.pgn /xreuse /xreuse2 @alarm0931.ini @s_wing.ini
c:\Chess\wbx\winboard.exe /mg=2 /cp /lgf c:\Chess\wbx\startpos\nunn.pgn /lgi 3 /tc 1 /inc 1 /sgf=c:\Chess\wbx\save\test.pgn /xreuse /xreuse2 @gerbil02.ini @s_latista.ini
c:\Chess\wbx\winboard.exe /mg=2 /cp /lgf c:\Chess\wbx\startpos\nunn.pgn /lgi 3 /tc 1 /inc 1 /sgf=c:\Chess\wbx\save\test.pgn /xreuse /xreuse2 @gerbil02.ini @s_wing.ini
c:\Chess\wbx\winboard.exe /mg=2 /cp /lgf c:\Chess\wbx\startpos\nunn.pgn /lgi 3 /tc 1 /inc 1 /sgf=c:\Chess\wbx\save\test.pgn /xreuse /xreuse2 @latista.ini @s_wing.ini
c:\Chess\wbx\winboard.exe /mg=2 /cp /lgf c:\Chess\wbx\startpos\nunn.pgn /lgi 4 /tc 1 /inc 1 /sgf=c:\Chess\wbx\save\test.pgn /xreuse /xreuse2 @alarm0931.ini @s_gerbil02.ini
c:\Chess\wbx\winboard.exe /mg=2 /cp /lgf c:\Chess\wbx\startpos\nunn.pgn /lgi 4 /tc 1 /inc 1 /sgf=c:\Chess\wbx\save\test.pgn /xreuse /xreuse2 @alarm0931.ini @s_latista.ini
c:\Chess\wbx\winboard.exe /mg=2 /cp /lgf c:\Chess\wbx\startpos\nunn.pgn /lgi 4 /tc 1 /inc 1 /sgf=c:\Chess\wbx\save\test.pgn /xreuse /xreuse2 @alarm0931.ini @s_wing.ini
c:\Chess\wbx\winboard.exe /mg=2 /cp /lgf c:\Chess\wbx\startpos\nunn.pgn /lgi 4 /tc 1 /inc 1 /sgf=c:\Chess\wbx\save\test.pgn /xreuse /xreuse2 @gerbil02.ini @s_latista.ini
c:\Chess\wbx\winboard.exe /mg=2 /cp /lgf c:\Chess\wbx\startpos\nunn.pgn /lgi 4 /tc 1 /inc 1 /sgf=c:\Chess\wbx\save\test.pgn /xreuse /xreuse2 @gerbil02.ini @s_wing.ini
c:\Chess\wbx\winboard.exe /mg=2 /cp /lgf c:\Chess\wbx\startpos\nunn.pgn /lgi 4 /tc 1 /inc 1 /sgf=c:\Chess\wbx\save\test.pgn /xreuse /xreuse2 @latista.ini @s_wing.ini
Hope that helps.

Oh, in the @engine.ini contains the startup info for the engine.

Richard

User avatar
hgm
Posts: 23790
Joined: Fri Mar 10, 2006 9:06 am
Location: Amsterdam
Full name: H G Muller
Contact:

Re: XBoard and epd tournament

Post by hgm » Mon Feb 01, 2010 7:43 am

Note that the above could be appreciably shortened by writing:

/mg 8 /lpi -2

WinBoard will then play the first four positions of the file each 2 times (with black and white), so that you only need one command for each engine. With

/mg 4 /lpi -1

it would play the first 4 positions only once, alternating colors between games. If you do not want the alternation, you could write

/sameColorGames 4 /lpi -1

Then the first engine wil play white in all 4 games.

Richard Allbert
Posts: 770
Joined: Wed Jul 19, 2006 7:58 am

Re: XBoard and epd tournament

Post by Richard Allbert » Mon Feb 01, 2010 7:49 am

:D

Well that helps a lot, thanks!!

vladstamate
Posts: 161
Joined: Thu Jan 08, 2009 8:06 pm
Location: San Francisco, USA
Contact:

Re: XBoard and epd tournament

Post by vladstamate » Mon Feb 01, 2010 4:35 pm

Excellent! That is exactly the information I was looking for. Although I feel a bit ashamed for not going the extra mile and finding this for myself. However I am grateful for your help nevertheless!

Regards,
Vlad.

Post Reply