Author: Volker Pittlik
Date: 05:36:25 05/27/00
Go up one level in this thread
On May 26, 2000 at 16:02:46, Mogens Larsen wrote:
>On May 26, 2000 at 15:55:47, Pete Galati wrote:
>
[...]
>>I think Mogens has the answer though, you'd want to download the start.pgn and
>>change the weights (see the text files for instructions) and compile a new
>>books.bin file (and not use a bookc.bin?). I have no idea, but I imagine that
>>you'd need to go though the same basic proceedure to make a bookc.bin file, but
>>I don't know what file Bob compiled that with to start with.
>
>You only need one of them, so it's not a major problem. You can use the same
>start.pgn with different weights if you choose to create a books.bin as well. I
>think it's possible to reset weights in the Crafty.rc file, but I'm not sure.
>
When I want to increase the randomness of Crafty's book moves I use Winboard
4.0.5 to prevent Winboard to send the "computer" command to Crafty. Winboard
4.0.7 is doing so when matching two engines. As far as I understood (and have
tested in several hundred games) the "computer" command changes Crafty's choise
of book moves. If I understand the source code correctly Crafty will execute the
following lines when getting the "computer" command:
/*
----------------------------------------------------------
| |
| "computer" lets crafty know it is playing a computer. |
| |
----------------------------------------------------------
*/
else if (OptionMatch("computer",*args)) {
Print(128,"playing a computer!\n");
computer_opponent=1;
accept_draws=0;
book_selection_width=1;
usage_level=0;
book_weight_freq=1.0;
book_weight_eval=.1;
book_weight_learn=.2;
books_file=(computer_bs_file) ? computer_bs_file : normal_bs_file;
}
/*
(option.c)
It's easy to see what happens when sending the "computer" command to Crafty.
Download the book.bin (and bookc.bin if you like) from Dr. Hyatt's site. Create
books.bin based on a start.pgn containing something like this:
[Site ""]
e4 {play 5%}
[Site ""]
d4 {play 5%}
[Site ""]
Nf3 {play 5%}
[...]
a4 {play 5%}
[Site ""]
b3 {play 5%}
[Site ""]
h4 {play 5%}
[...]
(just every possible move also the "unusual" ones)
Start Crafty without Winboard type "show book" an then "go". Open the log-file:
White(1): g
clearing hash tables
after screening, the following moves can be played
move played % score learn CAP sortv P% P
e4! 712147 47 0.15 0.00 -0.07 13362.5 5 Y
d4! 503991 33 0.15 0.00 -655.36 13070.2 5 Y
Nf3! 121355 8 -0.02 0.00 -655.36 12498.9 5 Y
c4! 113930 7 -0.17 0.00 -655.36 12458.5 5 Y
d3! 809 0 0.13 -0.01 -655.36 12356.2 5 Y
e3! 1651 0 0.13 -0.02 -655.36 12353.9 5 Y
f4! 8908 0 -0.05 -0.02 -655.36 12328.1 5 Y
g3! 11758 0 -0.21 0.02 -655.36 12314.0 5 Y
Nc3! 4144 0 -0.02 -0.06 -655.36 12313.4 5 Y
Na3! 74 0 -0.12 0.00 -655.36 12308.6 5 Y
a4! 167 0 -0.19 0.03 -655.36 12305.2 5 Y
a3! 599 0 -0.20 0.02 -655.36 12300.4 5 Y
c3! 391 0 -0.19 0.00 -655.36 12295.1 5 Y
b4! 8778 0 -0.20 -0.03 -655.36 12294.4 5 Y
g4! 1237 0 -0.20 0.00 -655.36 12294.3 5 Y
h3! 166 0 -0.20 0.00 -655.36 12292.8 5 Y
b3! 5794 0 -0.21 -0.02 -655.36 12291.7 5 Y
h4! 161 0 -0.19 -0.01 -655.36 12291.3 5 Y
Nh3! 110 0 -0.12 -0.32 -655.36 12197.1 5 Y
f3! 162 0 -0.07 -0.83 -655.36 12029.2 5 Y
book moves {e4, d4, Nf3, c4, d3, e3, f4, g3, Nc3, Na3, a4, a3,
c3, b4, g4, h3, b3, h4, Nh3, f3}
moves considered {e4, d4, Nf3, c4, d3}
move played % score sortv P% P
e4! 712147 47 0.15 66.7 5 Y
d4! 503991 33 0.15 66.7 5 Y
Nf3! 121355 8 -0.02 66.7 5 Y
c4! 113930 7 -0.17 66.7 5 Y
d3! 809 0 0.13 66.7 5 Y
book 0.0s 0% d3! d5
White(1): d3
Have you ever seen Crafty playing 1. d3 when using WB4.0.7 and using the books
from Dr. Hyatt's site (and without creating books.bin with a start.pgn
containing d3!)?
Then repeat this but type "computer" before you type "go":
White(1): sh b
show book statistics
White(1): computer
playing a computer!
White(1): g
clearing hash tables
after screening, the following moves can be played
move played % score learn CAP sortv P% P
e4! 712147 47 0.15 0.00 -0.07 13266.0 80 Y
d4! 503991 33 0.15 0.00 -655.36 12973.7 20 Y
Nf3 121355 8 -0.02 0.00 -655.36 4402.4 0 Y
c4 113930 7 -0.17 0.00 -655.36 4362.0 0 Y
d3? 809 0 0.13 -0.01 -655.36 260.8 0 N
e3? 1651 0 0.13 -0.02 -655.36 259.7 0 N
f4? 8908 0 -0.05 -0.02 -655.36 233.9 0 N
Nc3? 4144 0 -0.02 -0.06 -655.36 223.9 0 N
g3? 11758 0 -0.21 0.02 -655.36 215.2 0 N
Na3? 74 0 -0.12 0.00 -655.36 212.1 0 N
a4? 167 0 -0.19 0.03 -655.36 205.2 0 N
a3? 599 0 -0.20 0.02 -655.36 201.5 0 N
b4? 8778 0 -0.20 -0.03 -655.36 201.4 0 N
c3? 391 0 -0.19 0.00 -655.36 198.6 0 N
g4? 1237 0 -0.20 0.00 -655.36 197.8 0 N
b3? 5794 0 -0.21 -0.02 -655.36 197.5 0 N
h3? 166 0 -0.20 0.00 -655.36 196.3 0 N
h4? 161 0 -0.19 -0.01 -655.36 195.9 0 N
Nh3? 110 0 -0.12 -0.32 -655.36 137.8 0 N
f3? 162 0 -0.07 -0.83 -655.36 29.2 0 N
book moves {e4, d4}
moves considered {e4}
move played % score sortv P% P
e4! 712147 47 0.15 4000.0 80 Y
book 0.0s 47% e4! c5
White(1): e4
IIRC Crafty is playing 1. e4 "sometimes" when running with Winboard.
All other engines I know ignore the "computer" command or give an error message
for example:
StartChildProcess (dir="d:\Winboard\AnMon") AnMon509 xboard
[...]
6672 >first : computer
[...]
6672 <first : Error (unknown command): computer
NoonianChess is chrashing when getting this command.
BTW: I have never been successful when I tried to let Crafty choose every move
at a given percentage, for example:
[Site ""]
e4 {play 25%}
[Site ""]
d4 {play 25%}
[Site ""]
Nf3 {play 25%}
[Site ""]
c4 {play 25%}
...
doesn't force Crafty to play 1. c4 in 25 out of 100 games on my machine. Of
course there was an influence but the result wasn't nearly around 25% (I don't
remeber exactly). I guess it will be necessary to create your book containing
about 25% 1.c4 games to do so.
Not to be misunderstood: I don't complain. There is no other engine I know
giving me control in such a range as Crafty over the choose of openings (are the
commercials doing?). It is not an error of Winboard 4.0.7 to send the "computer"
command to the engines. But this decreases the randomness of Crafty's book
moves. Because I didn't find another way around this I use Winboard 4.0.5 when I
like Crafty to choose the openings more randomly. To let Crafty play on it's
strongest settings I simply add the "computer" command to my crafty.rc.
Volker
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.