Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Wcrafty/bit/maps

Author: Dann Corbit

Date: 16:04:29 12/11/01

Go up one level in this thread


On December 11, 2001 at 18:33:44, Gian-Carlo Pascutto wrote:

>On December 11, 2001 at 14:45:00, William Dozier wrote:
>
>>Good day everyone. I need some help. How do get bitmaps to work in Wcrafty
>>18.12?
>
>Your. Question. Not. Very. Clear.

I suspect he is asking about annotation ...
My wild guess is that he was curious about this:

3. annotate|annotateh <filename> <colors|name> <moves> <mar-
gin>  <time>  -is used to annotate (make comments in) a game
that has already been played.

The "annotate" command produces a file with the .can  exten-
sion added to the original name. This file will contain pure
ASCII information from the annotation pass; "annotateh" pro-
duces  an HTML file with the .html extension.  This includes
the normal output, plus a  nice  bitmapped  graphical  board
display  for  every  position  where Crafty had something to
say.

<filename>  -is the name of the file that has the game moves
stored in it. This should be a PGN compatible file, although
Crafty can read nearly any file with chess moves and convert
it  to  PGN using the "read" and "savegame" commands to per-
form the conversion.

<colors|name>  -indicates which side Crafty  will  annotate.
The  valid choices are w, b, and wb/bw for white only, black
only, or both, respectively. Crafty will search and  produce
results  for  the indicated color only, making moves for the
other side silently as they are read in.

Alternatively, you can specify the player's name,  which  is
useful  if you want To annotate several of your own games in
one large PGN file, for example, and you  alternated  colors
so  that  you  can't  pick the right one easily. Crafty will
then figure out which side to annotate  for  in  each  game.
Note that the name is case sensitive, but that you only have
to enter a string that is unique  in  the  name  field.  For
example,  if  one  name is "Anatoly Karpov" and the other is
"unknown" then specifying "Karpov" as the name would be suf-
ficient. If the same character string appears in both names,
Crafty will complain.

<moves>  -indicates the moves that should be  annotated.  If
this  is  a  single  integer, annotation starts at this move
number (for the color given above) and proceeds for the rest
of  the  game.  If  a range is given-e.g., "20-33"-then only
moves 20-33 inclusive are annotated. To  annotate  the  com-
plete game, you can use 1-999.

<margin>   -gives  a  score  "window"  that controls whether
Crafty will produce comments (see below).  The  larger  this
number,  the  fewer annotations Crafty will produce. A nega-
tive number will result in  an  annotation  for  every  move
selected.

<time>   -indicates  the  time  limit for each search. Since
each move selected requires two searches, you can  take  the
number  of  moves,  double  this  number, and multiply it by
<time> to determine how long  the  annotation  process  will
take. This time is in seconds.

Here's  how it works. Suppose you use the command: "annotate
game1 w 1-999 1.000 30" This asks Crafty to  read  the  file
"game1"  and  annotate  the white moves for the entire game.
The margin is 1 pawn and the search time limit  is  30  sec-
onds. The output for the annotate command is found in <file-
name>.can; in this case the file is "game1.can."

Crafty first searches the move actually played in  the  game
to determine the score for it. Crafty then searches the same
position, but tries all legal moves. If the  score  for  the
best move found in this search is greater than the score for
the move actually played plus the margin, then a comment  is
added  to  the output file. This output file is quite short,
with all the game moves (plus any PGN tags in the  original,
for  identification  purposes)  plus  the brief comments. An
annotation looks like this:

{real_value (depth:best_value PV moves)}

real_value  -is the score  for  the  move  actually  played;
depth    -is  the  depth  Crafty  searched  to  produce  the
best_value; and PV  -is for what Crafty thinks is  the  best
sequence  of  moves  for  both sides. If you set <margin> to
1.000, you are asking Crafty only  to  annotate  moves  that
either  lost  a  pawn or more, or moves that failed to win a
pawn or more. If you set <margin> to .300,  you  are  asking
for annotations for any move that makes the score drop about
1/3 of a pawn below the  value  for  the  best  move  Crafty
found.

If  you have other moves that you would like to see analyzed
during this annotate process, at the point  where  the  move
can  be  played,  insert it into the PGN file as an analysis
comment, surrounded by () or {} characters. Crafty will pro-
duce  analysis  for this move as well. If more than one move
appears inside a single set of delimiters,  only  the  first
will  be  analyzed. To force Crafty to analyze more than one
move, enter them like this: (move1) (move2) as  though  they
were two separate comments.


He was (no doubt) wondering about these files:
 Directory of E:\crafty\release

03/04/1998  09:10a              34,558 BPIECES.BMP
03/06/1998  08:24a              25,318 MPIECES.BMP
12/25/1997  09:16p               1,910 SMPIECES.BMP
02/25/1998  02:26p              11,318 WPIECES.BMP




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.