Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Opening Book Formats and Creation

Author: Will Singleton

Date: 22:41:12 12/30/98

Go up one level in this thread


On December 31, 1998 at 01:20:51, Komputer Korner wrote:

>On December 30, 1998 at 20:45:04, Chris Moreton wrote:
>
>>Unfortunately, the opening book is not so sophisticated yet as to store the
>>positions in a hash table.  Presently it reads the book into memory on start up
>>and each time it is asked to make a move, it takes the current position and
>>takes the FEN resulting from each legal move and compares it to the FENs in the
>>opening book and then randomly selects from the moves that lead to a FEN that it
>>finds in the book.  When I am able to download larger PGN files and am able to
>>speed up the creation routine to enable me to create larger books, I think I
>>will need to use your suggestion and implement a hashing method (both for speed
>>access and storage space!).  I have tried to use the work regarding ECO openings
>>on Dann Corbitt's ftp site but have only managed to convert about 10 megabytes
>>of PGN from about (correct me if I'm wrong) 1000 or so megabytes of PGN data.  I
>>am unfamiliar with the ECO openings and so do not know what I should expect in
>>each file (ranging from A00 to E99, I think).  So I then found a number of PGNs
>>of some master games and used those.  It is in its infancy at the moment but is
>>running with the opening book of master games on ICC as I write so I am hoping
>>there may be some noticiable benefit!
>>
>>On December 30, 1998 at 20:15:12, Will Singleton wrote:
>>
>>>
>>>On December 30, 1998 at 19:54:31, Chris Moreton wrote:
>>>
>>>>I have recently added a new opening book and opening book format to Rival.  It
>>>>now makes an opening book from a PGN file and can be requested to create a new
>>>>book from within the GUI.  It stores the positions in a plain text file as FENs
>>>>along with the number of white wins, black wins and draws and can be asked to
>>>>restrict the book based on the percentage of wins for the side who would make
>>>>the move that leads to each position and the number of plys examined in each
>>>>game.  The idea was mainly fueled after reading how Crafty creates its book.bin
>>>>file.  Is this relatively in keeping with how others implement opening books or
>>>>am I, as is often the case, way of the mark?
>>>>
>>>>Chris
>>>
>>>Sounds great, Chris.  So you have a book composed of fens, that the program
>>>reads and converts to hash entries, I take it.  Right?
>>>
>>>I do it in a way I'm sure no one else does, because it's inefficient and hard to
>>>modify.  I just read pgn games into memory, then sort so as to allow random
>>>choices between variations.
>>>
>>>Will
>
>If you market your program either as commercial or freeware will you make your
>book editable from within the program and allow on screen engine analysis at the
>same time.
>--
>Komputer Korner

Was that for Chris or me?  Mine is Mac-only at present, and nobody would want my
book, which is just fischer.txt from pitt's board.

Will




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.