Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Dabbaba needs an openingbook

Author: Komputer Korner

Date: 23:21:22 05/27/98

Go up one level in this thread


On May 27, 1998 at 16:45:38, Jens Baek Nielsen wrote:

>My chessprogram Dabbaba needs an openingbook.
>See below - is this the right way to make it?
>
>I consider having a textfile like in this format:
>e2e4# e7e5# g1f3# b8c6#...
>----  ----  ----  g8f6#...
>----  c7c5#...
>d2d4#...
>( the # could be a mark as in Genius (!/-/./ ) to indicate how often a
>move should be played)
>
>=====>Does such a textfile exist, that everybody can copy and use?
>
>A program DABBBOOK.EXE should read this textfile and generate a file
>DABBABA.BOK like this, that Dabbaba uses as its book:
>  8 bytes hashkey
>  1 byte from
>  1 byte to
>  1 byte for the #-mark.
>-------
> 11 bytes pr. position; ca. 9.000 positions in 100K.
>By using the hashkey much space is required, but transpositions are
>handled.
>
>Greetings Jens (jensbaek@silkeborg.bib.dk)


If you are familiar with Genius text files that are converted from the
Genius opening books, perhaps you could conform to those and write some
code to convert these to pgn format. See the following for an example of
a Genius text file that has been converted from a Genius bok file.
00000 G1F3 G8F6 C2C4!
00001 02   .    G2G3 G7G6 F1G2 F8G7 E1G1!E8G8!C2C4
00002 05   .    .    .    .    .    .    .    D2D4!
00003 05   .    .    .    .    .    .    .    D2D3 D7D6 E2E4 C7C5
>>     C2C3 b8c6 F1E1 E7E5 A2A3 A7A5 a3a4 D6D5 e4d5 f6d5 b1a3 a8b8
>>>     d1b3 d5c7 a3c4 c8e6 b3c2 f7f6 f3d2 e6d5 d2e4 b7b6 f2f4 f8e8
>>>>     f4f5 c6e7 f5g6 h7g6 g3g4 d8d7 c2e2 e8d8 e1f1 c7e8 c1e3 d5c6
>>>>>     e2f2 d7g4 c4e5 g4e6 e5c6 e7c6 d3d4 c5d4 c3d4
00004 10..
>>     .    .    .    .    .    .    .    h7h6 b1a3 c8e6 a3b5 c6a7
>>>     b5a7 a8a7 d3d4 e5d4 c3d4 b7b6 c1d2 e6g4 d4c5 d6c5 d2c3 d8d1
>>>>     a1d1 f8e8 h2h3 g4e6 d1d6 e8b8 f3e5
00005 09..
>>     .    .    .    .    .    B7B5 b1d2 a8b8 a3a4 b5b4 d2c4 b4c3
>>>     b2c3 c8e6 c1g5 d8d7 f3d2 f6e8 a4a5 e8c7 d1a4 b8b5 e1b1 f8b8
>>>>     b1b5 b8b5 a1b1 e6c4 a4c4 c6a5 c4a2 d7e6 c3c4 a5c6 c4b5 e6a2
>>>>>     b5c6 h7h6 g5d8 c7e6 g2h3 f7f5 e4f5 a2d2 f5e6 d2d3
00006 09..
>>     .    .    .    .    .    d6d5 e4d5 f6d5 b1d2 a8b8 d2e4 b7b6
>>>     b2b4 f7f5 d1b3 g8h8 e4g5 f5f4 g5h7 h8h7 b3d5 d8d5 f3g5 h7h6
>>>>     g2d5 h6g5 d5c6 c8f5 d3d4 b8c8 b4b5 e5d4 c1f4 g5h5 c3d4 g7d4
>>>>>     a1a2 g6g5 f4e3 f5e6 a2c2 e6f5 c2c1 d4b2 c1c4

Note that the symbols >  are part of the Genius text file.
--
Komputer Korner



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.