I have written out the Polyglot opening book specification. You can find it on my Toga website
http://alpha.uhasselt.be/Research/Algebra/Toga/
There are already some tests. When I find a bit of time I will also provide sample code.
In any case feedback is appreciated.
Michel
Polyglot opening book specification
Moderators: hgm, Rebel, chrisw
Re: Polyglot opening book specification
Thanks a lot,
I just needs some good random for Zobrist Key generation, I think using exactly that strategy in an engine code would reduce errors in comparison with an "home made" random generator. Am I wrong ?
And, furthermore, is there some permission needed to grap these random and using in an open source engine as mine ?
Thanks
I just needs some good random for Zobrist Key generation, I think using exactly that strategy in an engine code would reduce errors in comparison with an "home made" random generator. Am I wrong ?
And, furthermore, is there some permission needed to grap these random and using in an open source engine as mine ?
Thanks
Re: Polyglot opening book specification
Sorry for my question before...
I just noticed that at the beginning of your link you talk about copirights...
I just noticed that at the beginning of your link you talk about copirights...
Re: Polyglot opening book specification
I did not see mention of color support in the book spec. So with this format it is not possible to specify opening to be played only as white?
-
- Posts: 2041
- Joined: Wed Mar 08, 2006 8:30 pm
Re: Polyglot opening book specification
Michel wrote:I have written out the Polyglot opening book specification.
Any comment by Polyglot expert Marc Lacrosse?
-
- Posts: 12541
- Joined: Wed Mar 08, 2006 8:57 pm
- Location: Redmond, WA USA
Re: Polyglot opening book specification
I find the polyglot book specification lacking.
It's better than a lot of book formats, but I think this is better:
http://cap.connx.com/openingbook.sql
ER/Win model:
http://cap.connx.com/OPENINGBOOK.ER1
Even if you do not like this format or think it is too complex, I think you will immediately see things that it contains that are completely lacking from the polyglot format.
If you add some of the ideas from this model to the polyglot model, I think it will improve it.
It's better than a lot of book formats, but I think this is better:
http://cap.connx.com/openingbook.sql
ER/Win model:
http://cap.connx.com/OPENINGBOOK.ER1
Even if you do not like this format or think it is too complex, I think you will immediately see things that it contains that are completely lacking from the polyglot format.
If you add some of the ideas from this model to the polyglot model, I think it will improve it.
-
- Posts: 2272
- Joined: Mon Sep 29, 2008 1:50 am
Re: Polyglot opening book specification
I have posted a new version as I had forgotten to indicate how castling moves are represented.
See here
http://alpha.uhasselt.be/Research/Algebra/Toga/
Michel
See here
http://alpha.uhasselt.be/Research/Algebra/Toga/
Michel
-
- Posts: 2272
- Joined: Mon Sep 29, 2008 1:50 am
Re: Polyglot opening book specification
I don't quite understand what you mean. The color is encoded in the position.I did not see mention of color support in the book spec. So with this format it is not possible to specify opening to be played only as white?
Can you explain?
I have no intention of inventing a new opening book format. Nobody would use thatIf you add some of the ideas from this model to the polyglot model, I think it will improve it.
anyway.
The PG format is of course not perfect but
(0) It is not bad either.
(1) It is trivial to parse.
(2) It is understood by a number of important programs in the computer chess world.
(3) There are some good books already available (thanks Marc Lacrosse).
This being said it is possible to extend the PG format in a backwards compatible
way by adding "magic entries".
Michel
-
- Posts: 511
- Joined: Wed Mar 08, 2006 10:05 pm
Re: Polyglot opening book specification
Hmm I have no qualification for the programming aspect : I am not competent.ernest wrote:Michel wrote:I have written out the Polyglot opening book specification.
Any comment by Polyglot expert Marc Lacrosse?
From the book-user or book-maker point-of-view I am very happy that someone helps develop PG books use.
From my little experience : Polyglot books are really outstanding :
... they are small
... the book-making options are very sophisticated and powerful, and book-making heuristics is extremely efficient
... we were missing book-editing functions, but with latest SCID versions by P George we have now a powerful interactive way for modifying move weights in PG books
Michel just announced on the WB forum that he would work on additional book-editing utilities.
The main annoying point with Polyglot as a book-manager lies in the fact that it is a uci-to-winboard adaptor. So if you use PG as a book provider for an UCI engine, the engine becomes a winboard one and its use becomes difficult in uci-only GUIs. There are some tricks for circumventing this point (see my site) but this is still a bit of a pain.
One thing that is still missing (as Bob Hyatt pointed) is a kind of book-learning function. For what regards myself I am extremely cautious regarding automated book tuning and book learning. But it is true that there is place for development here.
Record ratings on ICC in all timing categories were achieved with polyglot books by the more brilliant exponent of this format, Nick Carlin, who also got excellent results on Playchess and in Freechess events.
This clearly demonstrates how high is the potential of these books
I am pretty comfident that with new more powerful and easier to use tools Polyglot books should become a de facto standard.
Marc
PS Main place to discuss these topics seems to be the Winboard forum.
Re: Polyglot opening book specification
Thanks a lot Michel, I can now try to add support for PG books in Hamsters!