Test epd for Linux ?

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

Moderator: Ras

Jesse Gersenson
Posts: 593
Joined: Sat Aug 20, 2011 9:43 am

Re: Test epd for Linux ?

Post by Jesse Gersenson »

Canoike wrote:Wine is of no use for me because I have a dual boot windows/linux ...

[snip]I need a 100% Linux software. I need all the power of Linux.[/snip]
Why is wine not an acceptable solution?
Canoike
Posts: 125
Joined: Tue Jan 17, 2012 8:08 pm

Re: Test epd for Linux ?

Post by Canoike »

Jesse Gersenson wrote:
Canoike wrote:Wine is of no use for me because I have a dual boot windows/linux ...

[snip]I need a 100% Linux software. I need all the power of Linux.[/snip]
Why is wine not an acceptable solution?
I need to test Linux engines in their native OS.
Canoike
Posts: 125
Joined: Tue Jan 17, 2012 8:08 pm

Re: Test epd for Linux ?

Post by Canoike »

hgm wrote: "xboard -matchGames 20 -epd -loadPositionFile foo.epd -loadPositionIndex -1"
xboard: Unrecognized argument -epd

Xboard 4.7.3 Xubuntu 14.04
User avatar
hgm
Posts: 28354
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Test epd for Linux ?

Post by hgm »

Oh, apparently only the development version has this option. The last official release (4.8.0) was quite long ago, and thus is rather obsolete by now. You can load the latest snapshot at http://hgm.nubati.net/cgi-bin/gitweb.cg ... ;a=summary . (This version is scheduled to be released as XBoard 4.9.0 soon.)

I am currently trying out how to make sure it is always the first engine that thinks on the positions in -epd mode. Can you recommend an EPD file I could test on? I have none on my computer.
Canoike
Posts: 125
Joined: Tue Jan 17, 2012 8:08 pm

Re: Test epd for Linux ?

Post by Canoike »

Here is an epd file with 100 positions. Right click and "save link as"
https://chessprogramming.wikispaces.com ... 6/STS1.epd
User avatar
hgm
Posts: 28354
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Test epd for Linux ?

Post by hgm »

OK, thanks. I just pushed a new patch that sort of works. The command

xboard -mg 20 -epd -lpf STS1.epd -lpi -1 -scp fruit -sUCI -sgf epdtest.pgn

presents the first 20 positions in the EPD file to Fairy-Max (the default engine; I mentioned Fruit as second engine to make it a different one, and sure it was never activated). It notices the 'bm' field in the EPDs, and checks whether this move was the first move in the latest PV, and considers the position solved if it was. It prints the result per position in the second engine-output pane.

I am not sure what the exact criteria are for considering a position as solved, and what counts as 'solving time'. And what statistics should be printed after all positions have been done (other than the number of solved/unsolved, which are already in the title bar).
Robert Pope
Posts: 564
Joined: Sat Mar 25, 2006 8:27 pm
Location: USA
Full name: Robert Pope

Re: Test epd for Linux ?

Post by Robert Pope »

hgm wrote:Unfortunately I have not equiped XBoard with any EPD-solving capability yet; I always figured there were enough programs to do that, and it is more a batch thing than a GUI thing anyway.
What are good utilities to do this?
Jesse Gersenson
Posts: 593
Joined: Sat Aug 20, 2011 9:43 am

Re: Test epd for Linux ?

Post by Jesse Gersenson »

Canoike wrote:
Jesse Gersenson wrote:
Canoike wrote:Wine is of no use for me because I have a dual boot windows/linux ...

[snip]I need a 100% Linux software. I need all the power of Linux.[/snip]
Why is wine not an acceptable solution?
I need to test Linux engines in their native OS.
You can run Linux engines, on Linux, through Arena/wine.

edit:
here is one way to do it.
1. run an ssh server on the linux machine.
2. download Odd Gunnar Malin's InBetween:
http://komodochess.com/pub/InBetween.zip

3. unzip InBetween.zip
4. put PLINK.EXE in the folder with InBetween.exe and InBetween.ini
5. add this line to InBetween.ini

Code: Select all

CommandLine := PLINK.EXE -ssh -C -pw YourPassword YourUser@localhost "./YourEngine"
Jesse Gersenson
Posts: 593
Joined: Sat Aug 20, 2011 9:43 am

Re: Test epd for Linux ?

Post by Jesse Gersenson »

In Arena InBetween.exe is the uci engine.
Canoike
Posts: 125
Joined: Tue Jan 17, 2012 8:08 pm

Re: Test epd for Linux ?

Post by Canoike »

I have just compiled and tested it but not installed yet. The command line you give above sends an error :
xboard: Error writing to second chess program: Relais brisé (pipe)
but
./xboard -mg 20 -epd -lpf STS1.epd -lpi -1 -sgf epdtest.pgn runs the test suite properly. (8-12-0)

I wonder how the time per position is set.

When a bm is found, the time is displayed. Would it be possible to add the time of each bm found in order to have the global time an engine spent to find all the best moves ?