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