]> git.pld-linux.org Git - packages/crafty.git/blame - read.me
- adapterized (killed trailing spaces/tabs)
[packages/crafty.git] / read.me
CommitLineData
3fa06793 1Crafty version 18.2
2
3-----------------------------------------------------------------------------
4What's new?
5
6the winboard "hang" problem was fixed, thanks to Tim Mann. Other changes
7include some major work on book learning to make it more 'aggressive'. IE
8if you clear all your learning data, and let crafty play, it will try to
9repeat won games and avoid lost games.
10
11There are other minor changes:
12
13* 18.2 minor bug in analyze mode would break the "h" command when black *
14* was on move, and show one less move for either side that had *
15* actually been played in the game. another bug also reversed the *
16* sign of a score whispered in analysis mode. recapture extension *
17* is disabled by default. to turn it on, it is necessary to use *
18* -DRECAPTURE when compiling search.c and option.c. LearnBook() *
19* has been modified to 'speed up' learning. see the comments in *
20* that module to see how it was changed. LearnResult() has been *
21* removed. LearnBook() is now used to do the same thing, except *
22
23(from main.c)
24
25-----------------------------------------------------------------------------
26The Crafty mailing list
27
28Specific questions can be directed to majordomo@cis.uab.edu, and in the
29body of this email, put the text "subscribe crafty-list" (without the
30quotes) which will subscribe to the crafty-list@cis.uab.edu mailing list,
31which covers lots of questions about the current goings-on in crafty, from
32problems, to installation questions, to future development goals.
33
34-----------------------------------------------------------------------------
35How does Crafty work?
36
37Download the file "crafty.doc" which is a complete description of all of
38the commands for Crafty along with examples where needed. This covers
39*every* command in the current version of Crafty.
40
41-----------------------------------------------------------------------------
42executable choices.
43
44wcrafty-*.exe is the executable you need to run crafty under
45windows, or under windows in a dos box.
46
47if you want tablebase support the standard executables provide this,
48but you must add egtb to the crafty.rc/.craftyrc file.
49
50The Macintosh port of Crafty is available in the macintosh directory.
51
52-----------------------------------------------------------------------------
53book database choices.
54
55All of these book choices are in the common directory. Each book has its
56own sub-directory so that you can cd into the appropriate directory and then
57"mget *" to get everything you need.
58
59large.zip, medium.zip and small.zip are the raw input files to make the three
60different sized books. large produces a 60mb opening database with 100K GM
61games; medium produces a 30MB database, and small will produce a 1MB database.
62On my sparc-20, large takes about 7 minutes to build, medium around 3 minutes,
63and small is under minute. Note that you will need at least double this space
64to create the files, as temporary stuff is written to disk along the way, and
65then deleted later.
66
67There are two new files available, "rock.pgn" and "wall.pgn". These files
68are still .gz compressed archives, but because they are so large (rock.pgn
69has over 660,000 games in it) they are broken into pieces. These pieces
70must be combined before they are unzipped. In windows, use a dos box and
71enter this: copy rock.01+rock.02+...+rock.10 rock.gz. Then ungzip rock.gz
72and you should be set. "wall" is about one-third the size of "rock" if you
73want something smaller.
74
75There is a newer book, called 'enormous' that can be downloaded in
76pieces (this from Dan's FTP site). The pieces are a,b,c,d,e and
77correspond to ECO classifications. Altogether this is roughly one
78gigabyte after it unzipped, which can make a truly huge book if you
79are not careful.
80
81Note that small.txt was made from opening textbooks, and, as a result,
82does not have the PGN "Result" tag. This causes some book random modes
83to not work correctly because crafty won't play an opening that has no
84wins to its credit. Either don't use small for the present, or else make
85your own from a select group of pgn games, maybe the first 5000 games from
86medium.zip as an example. (for more specific info, see crafty.doc)
87
88crafty
89book create <filename> 60 3
90quit
91
92<filename> should be replaced by what you get when you unzip the book file
93of your choice.
94
95start.zip contains a small file that is used to create books.bin.
96books.bin is created as follows:
97
98crafty
99books create start.pgn 60
100quit
101
102this file contains suggested openings that fit Crafty's "open" style of
103play better. You can edit/modify this at will, and it takes a fraction of
104a second to re-build after modification, so the big book file can be left
105alone.
106
107Note that the "60" is arbitrary, and is used to cut book lines off at roughly
10860 plies. you "can" say 500, so that the entire games will be stored, but you
109need even more disk space. you can also reduce this number to 30 (15 moves for
110each side to conserve disk space as needed, since the book will contain far
111fewer positions.
112
113Note that you can also look in the current directory (v15 at present) and
114you will find a book.bin and books.bin file already built from rock.pgn
115and ready to use. These are under 10mb together and are ready to use.
116You only have to put them in the same directory with crafty and you will
117be set to play.
118
119-----------------------------------------------------------------------------
120crafty.zip is a zip file that contains a complete set of source and
121header files for crafty and a Linux makefile that you will have to tweak for
122your machine. ditto for crafty.tar.gz just using gzip and tar instead for
123those that don't have plain zip.
124
125Note that you probably need only change the #define LINUX to #define SUN
126for example, and it will self-configure for SUN. Any of the machines in
127the comments can be done like this. others may take some playing, but the
128options are commented to help.
129
130If you are using gcc/Linux, the included Makefile should fit your needs
131perfectly, since linux uses gcc. NOTICE: if you are running linux, and
132have a gcc earlier than 2.6.3, crafty probably will compile cleanly but
133won't run. Early versions seem to have a defective implementation of the
134long long data type, which breaks crafty completely. Note that there is
135a linux version of crafty (crafty.linux) here compiled with gcc-i 2.6.3, if
136you have this problem. You will get an error when you start it, about the
137wrong version of ld.so.n, but it seems to run correctly. Note also, that
138I use gcc-i2.6.3, the pentium-specific version of gcc that is kept on
139most linux archive sites in the development directory. If you are
140not using this, you will have to modify CFLAGS to get rid of the pentium
141optimization options and simply use -On where n=the level that produces
142the fastest code (you'll have to try several to find the best usually.)
143
144-----------------------------------------------------------------------------
145It is highly recommended that you use the latest version of Xboard
146or Winboard from Tim Mann.
147
148 http://www.research.digital.com/SRC/personal/Tim_Mann/chess.html
149
150To use Crafty with xboard, you do the following:
151
152xboard -fcp crafty
153
154This will let you play using the mouse, etc.
155
156To set the time control, try this:
157
158xboard -fcp crafty -tc nm -mps mvs
159
160replace nm by the number of minutes in the time control you'd like to
161play under, mvs should be the number of moves in a time control. Blitz
162might be something like -tc 5 -mvs 60 to play 60 moves in 5 minutes, then 60
163more moves in 5 minutes, etc.
164
165to use it to play on ics/fics/etc, you can
166
167xboard -ics -zp -fcp "crafty ..." and create a .icsrc file, first line is
168login id, second line is password, remaining lines are simple force-fed to
169the server to set things like your formula, etc.
This page took 2.207482 seconds and 4 git commands to generate.