Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: For Chris Carson!

Author: Dann Corbit

Date: 14:55:26 09/02/99

Go up one level in this thread


On September 02, 1999 at 17:47:48, Côme wrote:
[snip]
>How can I use a pgn file for Crafty's book please?

Suggestion: "Read The Fine Manual."

Here is the FAQ:
ftp://ftp.cis.uab.edu/pub/hyatt/crafty.faq

Here is the manual:
ftp://ftp.cis.uab.edu/pub/hyatt/v16/crafty.doc
Here is a postscript manual:
ftp://ftp.cis.uab.edu/pub/hyatt/v16/crafty.doc.ps

If you can't be bothered with that, try the online help.  For instance, from the
crafty prompt, type help book create and you will see something like this:

White(1): help book create
you can use the following commands to customize how the
program uses the opening book(book.bin and books.bin).
typically, book.bin contains a large opening database made
from GM games.  books.bin is a short, customized book that
contains selected lines that are well-suited to Crafty's
style of play.  the <flags> can further refine how this
small book file is used to encourage/avoid specific lines.
book[s] create [<filename>] [maxply] [mp] [wpc]...creates a
   new book by first removing the old book.bin.  it then
   will parse <filename> and add the moves to book.bin (if
   the book create command was used) or to books.bin (if the
   books create command was used.)  <maxply> truncates book
   lines after that many plies (typically 60).  <mp> will
   exclude *any* move not appearing <mp> times in the input.
   <wpc> is the winning percentage.  50 means exclude any
   book move that doesn't have at least 50% as many wins as
   losses.
book mask accept <chars>...............sets the accept mask to
   the flag characters in <chars> (see flags below.)  any flags
   set in this mask will include either (a) moves with the
   flag set, or (b) moves with no flags set.
book mask reject <chars>...............sets the reject mask to
   the flag characters in <chars> (see flags below.)  any flags
   set in this mask will reject any moves with the flag
   set (in the opening book.)
book off...............................turns the book completely off.
book random 0|1........................disables/enables randomness.
bookw weight <v>.......................sets weight for book ordering.
   (weights are freq (frequency), eval (evaluation)
   and learn (learned scores).
book width n...........................specifies how many moves from
   the sorted set of book moves are to be considered.  1 produces
   the best move from the set, but provides little randomness.
   99 includes all moves in the book move set.
flags are one (or more) members of the following set of
characters:  {?? ? = ! !! 0 1 2 3 4 5 6 7 8 9 A B C D E F}
normally, ?? means never play, ? means rarely play,
= means drawish opening, ! means good move, !! means always
play, and 0-F are user flags that a user can add to any
move in the book, and by setting the right mask (above) can
force the program to either always play the move or never
play the move.  the special character * means all flags
and is probably dangerous to use.
flags are added to a move by entering the move, a / or \
followed by the flags.  / means add the flags to the move
preserving other flags already there while \ means replace
any flags with those following the \.
the format of the book text (raw data) is as follows:
[title information] (required)
e4 e5 ... (a sequence of moves)
[title information for next line] (required)
e4 e6 ...
end (optional)



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.