polyglot books for uci

Discussions about Winboard/Xboard. News about engines or programs to use with these GUIs (e.g. tournament managers or adapters) belong in this sub forum.

Moderator: Andres Valverde

polyglot books for uci

Postby Peter Fendrich » 07 Oct 2006, 22:56

polyglot and its book is working under winboard but can I use the polyglot book under uci in some way?
/Peter
User avatar
Peter Fendrich
 
Posts: 193
Joined: 26 Sep 2004, 20:28
Location: Sweden

Re: polyglot books for uci

Postby Marc Lacrosse » 08 Oct 2006, 07:51

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
Marc Lacrosse
 
Posts: 116
Joined: 29 Jan 2005, 09:04
Location: Belgium

Re: polyglot books for uci

Postby Tony Thomas » 08 Oct 2006, 15:00

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?
Tony Thomas
 
Posts: 232
Joined: 14 May 2006, 19:13
Location: Atlanta, Ga

Re: polyglot books for uci

Postby Guenther Simon » 08 Oct 2006, 15:08

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
Last edited by Guenther Simon on 10 Oct 2006, 19:12, edited 1 time in total.
User avatar
Guenther Simon
 
Posts: 794
Joined: 26 Sep 2004, 19:49
Location: Regensburg, Germany

Re: polyglot books for uci

Postby Peter Fendrich » 09 Oct 2006, 22:35

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
User avatar
Peter Fendrich
 
Posts: 193
Joined: 26 Sep 2004, 20:28
Location: Sweden

Re: polyglot books for uci

Postby Guenther Simon » 10 Oct 2006, 16:06

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]
User avatar
Guenther Simon
 
Posts: 794
Joined: 26 Sep 2004, 19:49
Location: Regensburg, Germany

Re: polyglot books for uci

Postby Tord Romstad » 10 Oct 2006, 19:09

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
User avatar
Tord Romstad
 
Posts: 639
Joined: 09 Oct 2004, 12:49
Location: Oslo, Norway


Return to Winboard and related Topics

Who is online

Users browsing this forum: No registered users and 37 guests