I'm trying to run a match between two engines using Xboard on my Linux system. I've got polyglot 1.4-3 installed on my system.
The polyglot.ini file for glaurung shows these entries (related to opening book stuff):
Book = true
Book File = /home/roy/chess/glaurung22/Book.bin
Similarly for the other engine (in this case, rybka-3) which has its own separate directory and polyglot.ini file.
Neither engine will use a book though when the match is started with this command:
xboard -size bulky -tc 5 -inc 10 -xponder -mg 25 -fcp /home/roy/chess/rybka-3/polyglot -fd /home/roy/chess/rybka-3 -scp /home/roy/chess/glaurung22/polyglot -sd /home/roy/chess/glaurung22 -sgf /home/roy/chess/glaurung22-vs-rybka3-games.pgn
The file Book.bin sits in /home/roy/chess/glaurung22 and also in /home/roy/chess/rybka-3 .
Can someone point out my mistake here? The file polyglot.ini sits in the same directory as the polyglot command (in this case, polylgot the binary is duplicated in each engine's directory).
Thanks for someone with either sharper eyes or more knowledge about using polyglot opening books in an Xboard setting.
Roy
Xboard and polyglot: getting two engines to use a book
Moderators: hgm, Rebel, chrisw
-
- Posts: 536
- Joined: Thu Mar 09, 2006 12:53 am
-
- Posts: 27811
- Joined: Fri Mar 10, 2006 10:06 am
- Location: Amsterdam
- Full name: H G Muller
Re: Xboard and polyglot: getting two engines to use a book
If you want Polyglot to use its book, don't you have to set the option OwnBook = false, or something like that?
-
- Posts: 270
- Joined: Thu Jan 15, 2009 12:52 pm
Re: Xboard and polyglot: getting two engines to use a book
Try "BookFile" insted of "Book File"Book = true
Book File = /home/roy/chess/glaurung22/Book.bin
if that does not work, see the rest of the post
These entries are in the [Polyglot] section of the ini file, right?
Are you sure the Book.bin is in polyglot format?
Adding OwnBook=false in the [engine] section shouldn't matter, but who knows... it certainly wouldn't hurt
Personally, I have a slightly different setup, but I don't see why your way doesn't work.
For each engine I use a wrapperscript x[Engine] wich just contains:
"polyglot [path_to_engine_ini_file]"
So in your case :
% cat /home/roy/chess/rybka-3/xRybka
ployglot /home/roy/chess/rybka-3/polyglot.ini
% cat /home/roy/chess/glaurung22/xGlaurung22
ployglot /home/roy/chess/glaurung22/polyglot.ini
I usually put that script in the same directory as the engine binary and engine ini.
I invoke xboard with:
xboard -mg 25 -fcp /home/roy/chess/rybka-3/xRybka -scp /home/roy/chess/glaurung22/xGlaurung22 -sgf ...
-
- Posts: 536
- Joined: Thu Mar 09, 2006 12:53 am
Re: Xboard and polyglot: getting two engines to use a book
I got it working now.govert wrote:Try "BookFile" insted of "Book File"Book = true
Book File = /home/roy/chess/glaurung22/Book.bin
if that does not work, see the rest of the post
These entries are in the [Polyglot] section of the ini file, right?
Are you sure the Book.bin is in polyglot format?
Adding OwnBook=false in the [engine] section shouldn't matter, but who knows... it certainly wouldn't hurt
Personally, I have a slightly different setup, but I don't see why your way doesn't work.
For each engine I use a wrapperscript x[Engine] wich just contains:
"polyglot [path_to_engine_ini_file]"
So in your case :
% cat /home/roy/chess/rybka-3/xRybka
ployglot /home/roy/chess/rybka-3/polyglot.ini
% cat /home/roy/chess/glaurung22/xGlaurung22
ployglot /home/roy/chess/glaurung22/polyglot.ini
I usually put that script in the same directory as the engine binary and engine ini.
I invoke xboard with:
xboard -mg 25 -fcp /home/roy/chess/rybka-3/xRybka -scp /home/roy/chess/glaurung22/xGlaurung22 -sgf ...
The answer was to use "BookFile" instead of "Book File".
Thanks for your help!
Roy
-
- Posts: 270
- Joined: Thu Jan 15, 2009 12:52 pm