Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Book for DeepSjeng 1.0

Author: Chessfun

Date: 03:20:47 03/06/03

Go up one level in this thread


On March 06, 2003 at 00:58:34, J.Dufek wrote:

>On March 05, 2003 at 17:31:16, Chessfun wrote:
>
>>On March 05, 2003 at 15:18:23, J.Dufek wrote:
>>
>>>After making book for DS from console, book have 3.145.732 bytes. this is a
>>>limit? Book was made from PGN base about 2.500.000 games, (limit was 5 and 3
>>>moves, but result was the same)
>>>thx
>>>J.
>>
>>With a DB of 2.5 million games you'll need bookoptimize.zip from the following;
>>http://www.lokasoft.nl/uk/downloads.htm
>>
>>Sarah.
>Sorry Sarah, but you don't fully understand my question.
>I need own Sjeng book for winboard (Sjeng must be in console mode, not in
>Chesspartner GUI), bookoptimize is, if i am right, only for book made CP GUI.
>J.


It is for CP yes.

Never created one myself in Winboard mode, following is the documentation I'm
not sure if you've read it but there are a couple of things it lists which may
help.
---------------

You can adapt the values as appropriate for your system. Pick as hashtable
setting that is as big as possible but smaller than physical RAM. The engine
should not access the disk during the middlegame, if it does, this is likely
an indication the hashtables do not fit in RAM and the engine starts swapping,
which will lower performance significantly.

If you have Nalimov endgame tablebases, indicate the directory to them and
change the cache size to an appropriate value. A few megabytes is fine, though
you can use more if you have a lot of RAM.

On a multiprocessor system, change the number of CPUs to the appropriate
value.

You can load a personality by indicating the path to the .per file.
If the indicated file does not exist the default is loaded.

3. Creating a book

After the above two steps Deep Sjeng is ready to be used as an analysis
engine. Refer to the documentation of your interface for how to load Deep
Sjeng as a WinBoard I or II engine in it.

Using Deep Sjeng in WinBoard mode for game playing is generally not necessary
and disrecommended. If you want to play a match between WinBoard engines
consider using ChessPartner's Engine Research Tool (ERT).

Should you wish to use Deep Sjeng in WinBoard mode for playing games anyway,
it will be necessary to make an opening book.

II. Opening books
-----------------

Deep Sjeng's opening book is contained in the sjeng.bok file. If the
engine is started and no book file is found it will generate an empty
one automatically. The book supports a variety of move attributes and
statistics and can recognize transpositions.

There are two ways to get moves in the book: start from a PGN database
of GrandMaster games or import from another book format.

1. Importing PGN databases

All of Deep Sjeng's book functions can be accessed by starting the
program in console mode and entering the command 'book'. To create
a book from a PGN database, choose '1 - Create book from PGN database'.

When asked, enter the name of the PGN database. Note that Deep Sjeng
requires the file to be strict PGN. A lot of software - notably the
ChessBase line of products - generates files that look like PGN but
aren't. Trying to build a book from such a file will tend to cause
a lot of errors. You can try to 'fix' the errors in the PGN database
by running it through the program PGN-Extract first. PGN-Extract is
freely downloadable from the internet.

The program will ask for a size for the keycache. Good values are
about 1/2 to 1/4 of available RAM. A larger setting will tend to
speed up book generation and create more compact books, but it is
important to leave some RAM available for disk caching. Do not make
this bigger than physically available RAM.

A minimum number of games is also asked for. Deep Sjeng will not include
the move in it's book if it was not played at least his amount of
times. The minimum acceptable value is 2.

Once the book generation is done, you can either import move attributes
from another book format, or compact the database. Compacting the database
should always be the last step.

2. Importing alien books

Deep Sjeng can import two kind of books: textbooks and FBK books.

FBK books are old Fritz format books. They can be generated with the
freely available ChessBase Light. Start Deep Sjeng, enter the 'book'
command, and choose import from FBK book. Then enter the path to the
FBK file.

Textbooks are simple text files with each line containing a different
variation. Both long and short algebraic format are acceptable, as well
as the annotations '!' '!!' '?' '??'. Comments can be put between '/',
'{' and '}', or '[' and ']'

    For example:

    e2e4!! e7e5! g1f3!! f7f6? f3e5!
    d2d4!! g8f6!
    d4! d5? c4!! dxc4! Nf3

    !! means 'winning move', and Sjeng will always play them
    !  means 'good move', Sjeng will give them higher preference
       unless it learns that the opening is no good
    ?  means 'bad move', Sjeng will give them a lower preference,
       unless it learns that the opening is good after all
    ?? means 'losing move', Sjeng will never play them

Note that if you indicate a bad move in a variation, it is always a good
idea to provide a (better) alternative, otherwhise Deep Sjeng may decide
to play the bad move anyway if it does not find anything better itself.

3. Compacting the book

Once you are done with building the book, start Deep Sjeng in console
mode and enter the 'book' command, then pick compact book. Deep Sjeng
will compact the book and perhaps drop a small percentage of the least
interesting positions.

------------

Sarah.



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.