Author: Robert Hyatt
Date: 18:06:22 03/22/98
Go up one level in this thread
On March 22, 1998 at 17:30:45, Bas Hamstra wrote: >Robert Hyatt wrote: > >[about Crafty book] > >>books is needed, but you can make one with a single book move and that >>will suffice... the ! flags are honored in either books.bin or >>book.bin, >>so you can do as you are suggesting. >>>3. Set random to zero (to make sure it plays the ONE "!") >> >>not needed and a waste of time, because it will do a *search* on the >>book moves. if there is a ! move, it will *always* play that unless >>it learns it is bad. If there are two ! moves and some non-! moves, >>it will use whatever book selection weights you have selected, but only >>to choose between the two ! moves... > >Ok, non zero is better, I'll look in the doc what's best for us. >> >>>4. Width doesn't matter, I guess, then. > >>not really, although if you have 5 ! moves and width set to 3, it will >>only consider 3 of 'em.. > >Actually some randomness can't hurt. Especially against learners. But >that's >not so important yet. First a decent rating :) > >>>However, I'm not sure it is possible. I mean every book position would >>>result in a pgn game, and that's a lot of games. And with all the >>>transpositions, no, no disk could stuff it. >>> >>>Suggestions? >>> >>>*Every* position in our book should go to the Crafty book, and in every >>>position Crafty should *only* play the `best' bookmove in that position. >> >>what you are asking for is not possible in the present implementation, >>although I am going to do something like this later.. > >I don't understand that. I tested with a few pgn lines and Crafty indeed >plays only the "!!" moves. So in principle it should work? Look: > >1. For every *unique* position in our book I create a pgn game >2. Only when a certain move in that game is "best" (according to > our own years long hand-tuned book) I add a "!!" >3. Read that pgn in Crafty > >After some thinking I think it should do what I want? Recognize all our >bookpositions and play only suggested "!!" moves. It's a lot of lines, >but maybe my disk can hold it. > >If I'm mistaken, please let me know. Also: how does Crafty store its >bookmoves? Positions or moves? Or positions AND moves in that positon? >Are there specs for the Crafty book formats? Optimal would be a quick >direct conversion. > crafty stores the 64bit hash signature for each position in the pgn game files it reads to build the book. However it has a safeguard to prevent some of the embarassing transpositions from occurring the book file format (of a single move) can be found in chess.h, but the overall data structure can be figured out from the file book.h and some careful reading... it is somewhat complex and was designed for fast I/O, in that I do one read to get all the known book positions for a given parent position, and no I don't store trees either.. :) >Suggestion: epd. And with the epd the possible bookmoves in this >position >(in comment part or something). And every one of them can hold a flag. > >Example: > >kqbwe/8dsfsd/sdfsdll/8/8/BNK5 w KQkq e6 ; book e4!! d2 Nf3?? > >It requires very little work and would be pretty exchangable. Crafty >should >then be able to dump its book in that format and read it (also add to >existing book). Just a suggestion. > > > >Regards, > >Bas Hamstra.
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.