Analysis

Discussions about Winboard/Xboard. News about engines or programs to use with these GUIs (e.g. tournament managers or adapters) belong in this sub forum.

Moderator: Andres Valverde

Analysis

Postby Dan-the-K » 13 Mar 2005, 18:20

What is the meaning of analysis results and how (if possible) does Crafty analyze an entire game?

Following are excerpts from Winboard.Debug resulting from analysis of a single position:

ForwardInner(6), current 5, forward 18
1061707 >first : Nf6
1062067 >first : .
1062568 <first : 1 13 0 530 4. Bb5+ Nc6
1062828 <first : 1 13 1 644 4. Bb5+ Nc6
1062948 <first : 2 -6 11 2180 4. Bb5+ c6 5. e5 cxb5 6. exf6 Qxf6 7. Nxb5
1062958 <first : 2 1 11 2261 4. Bg5 dxe4 5. Bxf6 Qxf6 6. Nxe4
1063079 <first : 2 16 14 2624 4. e5 Nfd7
1063209 <first : 2 16 14 2674 4. e5 Nfd7
1063339 <first : 3 23 16 2950 4. e5 Ne4 5. Nxe4 dxe4
1063459 >first : .
1063459 <first : 3 23 22 4194 4. e5 Ne4 5. Nxe4 dxe4
1063579 <first : 4 22 28 5499 4. e5 Nfd7 5. Nf3 Nc6
1063709 <first : stat01: 28 5504 4 37 39
1063840 <first : 4 22 56 11302 4. e5 Nfd7 5. Nf3 Nc6
1063960 <first : 5 29 82 17205 4. e5 Ne4 5. Nxe4 dxe4 6. Bb5+ Bd7 7. Bc4
1064090 <first : stat01: 123 25631 5 33 39
1064090 <first : 5 29 154 31583 4. e5 Ne4 5. Nxe4 dxe4 6. Bb5+ Bd7 7. Bc4
1064450 <first : 6 27 195 41724 4. e5 Ne4 5. Nxe4 dxe4 6. Bc4 Bb4+ 7. c3 Be7
1065081 >first : .
1065081 <first : stat01: 258 55936 6 35 39
1066694 <first : 6 27 419 93251 4. e5 Ne4 5. Nxe4 dxe4 6. Bc4 Bb4+ 7. c3 Be7
1067074 >first : .
1067184 <first : stat01: 459 101500 7 38 39
1067966 <first : 7 23 547 125740 4. e5 Ne4 5. Nxe4 dxe4 6. Bb5+ Bd7 7. Bxd7+ Qxd7 8. Ne2 Bb4+ 9. c3 Be7
1069077 >first : .
1069267 <first : stat01: 674 157284 7 37 39
1071080 >first : .

...

16209228 <first : stat01: 1514673 393799051 13 1 39
16209358 <first : 13 35 1514686 393801455 4. e5 Nfd7 5. Nf3 Be7 6. Bb5 O-O 7. O-O a6 8. Bd3 Nc6 9. Bf4 Nb4 10. Be2
16211020 >first : .

This seems to be in two sections: first listing all the considered moves, and then, who knows?, with analysis of each possible move encompassing hundreds of lines. In both parts, each sequence of moves is preceded by 4 numbers. I imagine they are the depth considered, but what are the other numbers? What are the numbers following stat01? What is the second section and what do all the other lines mean?



My second question is can Crafty analyze an entire game? This seems to be an option "Analyze Game" but if I click that menu item and select a game, the computer remains silent. Nothing happens until I load a game and move to a particular position. Even then, it only analyzes one move.

TIA,

Dan
Dan-the-K
 

Re: Analysis

Postby Volker Pittlik » 13 Mar 2005, 18:39

Dan-the-K wrote:What is the meaning of analysis results and how (if possible) does Crafty analyze an entire game?

...

My second question is can Crafty analyze an entire game? This seems to be an option "Analyze Game" but if I click that menu item and select a game, the computer remains silent....


Crafty has an excelent build-in "annotate" command. If I want an analasis of a whole game I always use that function. Type "annotate" at crafty's command line to see the syntax.

Volker
User avatar
Volker Pittlik
 
Posts: 1031
Joined: 24 Sep 2004, 10:14
Location: Murten / Morat, Switzerland

Re: Analysis

Postby Dan-the-K » 13 Mar 2005, 19:21

Crafty has an excelent build-in "annotate" command. If I want an analasis of a whole game I always use that function. Type "annotate" at crafty's command line to see the syntax.

Volker[/quote]

Thanks, you've sort of answered both questions.

The Crafty-generated-log files include the same analysis in a format that's much easier to read.

Please explain the syntax of the Crafty Annotate command. All I get is

annotate <file> <color> <moves> <margin> <time> [nmoves]

What is the meaning and format of these parameters?

In fact, is there a list somewhere of Crafty commands? How can I get Crafty to show me all its commands? "Help" doesn't do it.

Dan
Dan-the-K
 

Re: Analysis

Postby Volker Pittlik » 13 Mar 2005, 19:32

Dan-the-K wrote:...

Please explain the syntax of the Crafty Annotate command. All I get is

annotate <file> <color> <moves> <margin> <time> [nmoves]

What is the meaning and format of these parameters?



3. annotate|annotateh <filename> <colors|name> <moves>
<margin> <time> This command is used to annotate (make com-
ments in) a game that has already been played.

The annotate command produces a file with the .can extension
added to the original name. This file will contain pure
ascii information from the annotation pass. "annotateh"
produces an HTML file instead (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" com-
mands to perform the conversion.

<colors|name> indicates which side Crafty will annotate.
The valid choices are w, b, and wb/bw for white only, black
only, and both, respectively. Crafty will search and pro-
duce 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 (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. IE if one name is
"Anatoly Karpov" and the other is "unknown" then specifying
Karpov as the name would be sufficient. If the same
'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, as (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
this number, the fewer annotations Crafty will produce. A
negative 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 by <time> to
determine how long the annotation process will take. This
time is in seconds.

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 mar-
gin is 1 pawn and the search time limit is 30 seconds. The
output for the annotate command is found in <filename>.can,
in this case this 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 com-
ments. 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 for what it thinks is the best sequence of moves for both
sides. If you set <margin> to 1.000, you are asking Crafty
to only annotate moves that either lost a pawn or more, or
moves that failed to win a pawn or more. If you set <mar-
gin> 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 you would like to see analyzed dur-
ing this annotate process, at the point where the move can
be played, insert it into the PGN file as an analysis com-
ment, 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.



Dan-the-K wrote:...

In fact, is there a list somewhere of Crafty commands? How can I get Crafty to show me all its commands? "Help" doesn't do it.

Dan


Look for "crafty.doc.ascii" in the documentation folder on Bob's tfp server. You'll find the links at the bottom.

Volker
User avatar
Volker Pittlik
 
Posts: 1031
Joined: 24 Sep 2004, 10:14
Location: Murten / Morat, Switzerland


Return to Winboard and related Topics

Who is online

Users browsing this forum: No registered users and 26 guests