Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: A request to all (GUI-)programmers about opening books

Author: Dieter Buerssner

Date: 03:57:25 10/05/00

Go up one level in this thread


On October 02, 2000 at 01:32:19, Harald Faber wrote:

>Would it be a huge effort to make it possible that one can create an own pgn
>file where the desired book moves get an '!', the normal book moves without any
>sign and the forbidden book moves get an '?', so that by importing this pgn file
>into ANY chess programs opening book, these preferences are overtaken?
>It is annoying to always create a new opening book and modify the preferences
>again and again.

I don't see what this has to do with GUI. Nevertheless I tried to make something
similar possible for Yace. From readme.txt:

Customizing the book.
---------------------

Yace will currently select moves from the book, by a probability
proporional to the number of counts, the move was played in that
situation. You can influence this by commenting moves with NAGs.

Moves with ?? will never be played.
Moves with ? will be played with a low probability, or perhaps never.
?! will lower the probability of playing.
!? will rise the probability of playing.
! will rise it much more.
When at least one move is present with !!, all other moves won't
be considered. When there is more than one move with !!, one of
those moves will be selected, all with equal probability.

When from the same position a move is commented once and commented
differently an other time, the later will overwrite the first.

To build a custom book, I suggest the following:
Say you want to practice French defense with white and black. Just create a text
file french.pgn.

[Allways play French defense]
e4!! e6!!

Then type

book_add french.pgn

Now Yace will allways play 1.e4 as white and allways reply to 1.e4 with
1...e6.

Note, that I haven't given the maxply here. Then Yace will default to
add all moves up to maxply 30.

You can delete the French defense again by "=". Create a file nofrench.pgn

[Don't want to practise French anymore]
e4= e6=

And type book_add nofrench.pgn.

In the Yace distribution, there is a file start.pgn created by Mogens Larsen.
It will make Yace play many different openings. You can add this to the book
by book_a start.pgn. If you have a look at the file, you will see, that there
are for example 1.e4!!, 1.d4!!, 1.Nf3!! and 1.c4!!. This will mean, that on
average
every forth game Yace will play 1.e4 etc.
Yace will never play 1.f4. The game collection distributed by Mogens Larson
also has many games for 1.b3, 1.g3 and 1.f4. If you like, that Yace also chooses
those opening moves just add the following lines to start.pgn or create a file
b3g3f4.pgn

[]
b3!!
[]
g3!!
[]
f4!!

and type book_add b3g3f4.pgn.

[...]

You can also use different books with Yace. By default Yace will use the book
dbbook.bin in the yace directory. If type or have a line in yace.ini:

book_file c:\the\path\to\mybook.bin

Yace will use that book instead. Also book_create and book_add will use that
book. If you have more then one book, and all of them are in the yace directory,
you don't need the path. When playing under Winboard, you can hit Alt+1 together
and then type i.e. book_f french.bin to select the french book from now on. If
you type
Alt+1 again, and then type book_f dbbook.bin, the default book will be used
again.

Your comments or suggestions to make these procedures easier for a user are
appreciated, Dieter.




This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.