Main
Date: 10 Oct 2006 13:11:38
From: Dave (from the UK)
Subject: Help needed with Toga (Fruit), polyglot and scid on UNIX
I'm trying to set up Toga II 1.2.1 (which is based on Fruit 2.1) as a
chess engine on my UNIX box. I'd like to be able to play games against
it, as well as to use it to analyse games.

The software I use needs winboard, not UCI engines. This includes the
scid database, which supports xboard engines (eg crafty) but not UCI ones.

I've downloaded the source files for Toga II 1.2.1 from:

http://www.uciengines.de/

as well as the UCI to winboard adapter polyglot from

http://wbec-ridderkerk.nl/html/details/PolyGlot.html

I compiled both without too much hassle (there was a slight issue with
fruit, due to the use of a function quad, which happens to be part of
Solaris, so I just renamed it to quad2).

I've created a polyglot.ini file:

% cat polyglot.ini

[PolyGlot]
Log true
LogFile /export/home/drkirkby/chess/polyglot.log

EngineDir = /usr/local/bin
EngineCommand = fruit

Book = true
BookFile = /export/home/drkirkby/chess/book.bin ; same directory as INI
file, use full path otherwise

[Engine]
Hash = 64


I seem able to play a game of chess using xboard with the polyglot/fruit
combination:

xboard -fcp /export/home/drkirkby/chess/polyglot -size medium

This reports 'drkirkby vs Toga II 1.1.1a'

Given I don't think I am using a book at this point, it seems to play a
good game of chess.

Questions.
********

1) How do I create an opening book for toga (fruit) ?

I've created a small opening book for polyglot using:

% polyglot make-book -pgn games.pgn -bin book.bin -max-ply 30

PolyGlot 1.4 by Fabien Letouzey
inserting games ...
69 games.
1712 entries.
filtering entries ...
43 entries.
sorting entries ...
saving entries ...
all done!

but not for fruit as yet, since I don't know how to do it. The docs with
Toga are not exactly overly helpful on the source distribution.

NOTE: It is quite possible (likely) that book files created on an PC
(even a Linux one) will *not* work on my Sun workstation, since the byte
ordering of the UltraSPARC processor is different from that of an
386/486/Pentium/AMD CPU. Hence I'd like to find out how to create an
opening book on my UNIX box.

2) Why is polyglot not creating any log file, when I've attempted to
configure it to do so?

3) Can one get fruit to create a log file? I downloaded the UCI protocol
from the shreder site:

http://download.shredderchess.com/div/uci.zip

but see no reference to logging whats happening. I have some problems,
so need to know what is going on.

4) Has anyone got Toga/frute to work with scid:

http://scid.sourceforge.net/

I tried doing this is scid, but setting up an engine:

Name: polyglot
Command /export/home/drkirkby/chess/polyglot
Parameters
Directory .

but as soon as I tried to analyse a game with that, I get an error
message about the analysis engine terminating. Whether this is polyglot
or fruit that crashed I have no idea, since I can't create any log files.

Any thoughts???
--
Dave (from the UK)

Please note my email address changes periodically to avoid spam.
It is always of the form: [email protected]
Hitting reply will work for a few months only - later set it manually.

http://witm.sourceforge.net/ (Web based Mathematica front end)




 
Date: 12 Oct 2006 14:58:06
From: le.silmarillion
Subject: Re: Help needed with Toga (Fruit), polyglot and scid on UNIX
> I tried doing this is scid, but setting up an engine:
> Name: polyglot
> Command /export/home/drkirkby/chess/polyglot
> Parameters
> Directory .


Name: fruit
Command: polyglot
Paramaters: /home/ced/Echecs/Engines/Fruit/parametre_Fruit.ini
Directory: .



In the file parametre_Fruit.ini:
[PolyGlot]
EngineDir = /home/ced/Echecs/Engines/Fruit
EngineCommand = /usr/games/fruit

[Engine]
Hash = 64


 
Date: 10 Oct 2006 16:08:43
From: Gian-Carlo Pascutto
Subject: Re: Help needed with Toga (Fruit), polyglot and scid on UNIX
> 3) Can one get fruit to create a log file? I downloaded the UCI protocol
> from the shreder site:
>
> http://download.shredderchess.com/div/uci.zip
>
> but see no reference to logging whats happening. I have some problems,
> so need to know what is going on.

Try adding the -debug option when you start xboard.

--
GCP


  
Date: 10 Oct 2006 17:40:36
From: Dave (from the UK)
Subject: Re: Help needed with Toga (Fruit), polyglot and scid on UNIX
Gian-Carlo Pascutto wrote:
>> 3) Can one get fruit to create a log file? I downloaded the UCI
>> protocol from the shreder site:
>>
>> http://download.shredderchess.com/div/uci.zip
>>
>> but see no reference to logging whats happening. I have some problems,
>> so need to know what is going on.
>
>
> Try adding the -debug option when you start xboard.
>

The xboard/polyglot/fruit combination works OK.

Something like:

xboard -fcp '/usr/local/bin/crafty-19.12' -scp
/export/home/drkirkby/chess/polyglot -size medium

allows fruit to play crafty using xboard.

I can't however to get this to work with scid. Neither can I get scid to
work with crafty versions >= 19.10. I don't know how to debug them
though. fruit (or perhaps polyglot) crash immediately when called from
scid. But finding the problem is hard - I don't know how to go about
debugging this.

--

Dave (from the UK)

Please note my email address changes periodically to avoid spam.
It is always of the form: [email protected]
Hitting reply will work for a few months only - later set it manually.

http://witm.sourceforge.net/ (Web based Mathematica front end)