Page 1 of 1

polyglot books for uci

PostPosted: 07 Oct 2006, 22:56
by Peter Fendrich
polyglot and its book is working under winboard but can I use the polyglot book under uci in some way?
/Peter

Re: polyglot books for uci

PostPosted: 08 Oct 2006, 07:51
by Marc Lacrosse
Peter Fendrich wrote:polyglot and its book is working under winboard but can I use the polyglot book under uci in some way?
/Peter


Hi Peter

This is a very interesting question to which I often tried to get an answer but I was not able to find one ...

I tried the double adaptor approach but could not get it to work :

Code: Select all
someGUI + WB2UCI + PG-with-book + UCI-engine


If you manage to find a working solution please let us know!

Marc

Re: polyglot books for uci

PostPosted: 08 Oct 2006, 15:00
by Tony Thomas
Can't you program your engine in a way which enables it to use .bin books? Sort of like the way its done in Toga?

Re: polyglot books for uci

PostPosted: 08 Oct 2006, 15:08
by Guenther Simon
Tony Thomas wrote:Can't you program your engine in a way which enables it to use .bin books? Sort of like the way its done in Toga?


You mean Fruit, because Toga only uses the Fruit code
for using Fruit books == Polyglot books.

Guenther

Re: polyglot books for uci

PostPosted: 09 Oct 2006, 22:35
by Peter Fendrich
Tony Thomas wrote:Can't you program your engine in a way which enables it to use .bin books? Sort of like the way its done in Toga?
I have my own book code in Terra but tried to skip that in Alaric. Maybe I will rip out the book code from polyglot and make it open source and uci only. If I get Fabians ok of course. I am not sure it is according to his open source intentions.
/Peter

Re: polyglot books for uci

PostPosted: 10 Oct 2006, 16:06
by Guenther Simon
Marc Lacrosse wrote:
Peter Fendrich wrote:polyglot and its book is working under winboard but can I use the polyglot book under uci in some way?
/Peter


Hi Peter

This is a very interesting question to which I often tried to get an answer but I was not able to find one ...

I tried the double adaptor approach but could not get it to work :

Code: Select all
someGUI + WB2UCI + PG-with-book + UCI-engine


If you manage to find a working solution please let us know!

Marc


I never used it, but I like to fiddle around with such things
and as I had already once Rybka set up to test my ThinkerBook
against a ctg book in a CB GUI I thought I would solve it ;-)

Result: Polyglot books can be used in every GUI which either
supports WB or the UCI protocol.
In WB GUIs as WB and Arena and probably Chesspartner(or CM?)
it is easy because it works the same way as under WB itself,
thus no need for explanations.

Under UCI GUIs only you must load the WB2UCI adapter
first which points to Polyglot which points to the real UCI exe.
The only annoying thing was the slow output in the CB GUI,
but that is just cosmetic because in reality much more depth
is reached and noted in the game itself.
(Maybe this can be solved with a better/newer WB2UCI ini file,
because I only tried with a very old one which was lying around
on my HD...or by setting lower priority...)

If someone needs more detailed explanations please ask again
and I will give a bigger picture here later again.


Guenther

Code: Select all
Edited: yes setting priority to 'lower than normal' solved
the output problem.


The ancient WB2UCI ini file I have used:
Code: Select all
[ENGINE]
Name = Diablo 0.51 UCI + Polyglot Book
Author = Marcus
Filename = Diablo_051JAWB2UCI.exe

[OPTIONS]
Program = Diablo_051JA-Polyglot.exe
LevelExtend = none
Analyze = false
UseUndo = false
Logfile = false
LevelType = 2
SimulateHint = true
TerminateHard = true
Protocol = 1
Visible = Ponder,Logfile,Extras

[EXTRAS]

Re: polyglot books for uci

PostPosted: 10 Oct 2006, 19:09
by Tord Romstad
Guenther Simon wrote:
Tony Thomas wrote:Can't you program your engine in a way which enables it to use .bin books? Sort of like the way its done in Toga?


You mean Fruit, because Toga only uses the Fruit code
for using Fruit books == Polglot books.


Exactly. The Fruit book code and the PolyGlot book code is the same, which is no surprise when we consider that both programs have the same author. It would be technically easy to add support for PolyGlot books to any chess engine, but because PolyGlot is a GPL program, any chess program which uses the actual book code from PolyGlot would also have to be GPLed. It would also be possible (but certainly more difficult) to write your own code for reading PolyGlot books. In this case, the author would not be bound by the GPL.

Tord