BSD 4_4 development
[unix-history] / usr / share / man / cat6 / chess.0
CommitLineData
a4bc5b60
C
1
2
3
4Chess(GNU) BSD Reference Manual Chess(GNU)
5
6
7N\bNA\bAM\bME\bE
8 Chess - GNU Chess
9
10S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
11 C\bCh\bhe\bes\bss\bs [ a\bar\brg\bg1\b1 a\bar\brg\bg2\b2 ]
12
13D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
14 _\bC_\bh_\be_\bs_\bs plays a game of chess against the user or it plays
15 against itself.
16
17 _\bC_\bh_\be_\bs_\bs has a simple alpha-numeric board display or it can
18 be compiled for use with the CHESSTOOL program on a SUN
19 workstation. The program gets its opening moves from the
20 file gnuchess.book which should be located in the same
21 directory as gnuchess. To invoke the prgram, type
22 'gnuchess' or type 'chesstool gnuchess' on a SUN worksta-
23 tion where 'CHESSTOOL' is installed. The 'gnuchess' com-
24 mand can be followed by up to 2 command line arguments.
25 If one argument is given it determines the programs search
26 time in seconds. If two arguments are given, they will be
27 used to set tournament time controls with the first argu-
28 ment being the number of moves and the second being the
29 total clock time in minutes. Thus, entering 'chess 60 5'
30 will set the clocks for 5 minutes (300 seconds) for the
31 first 60 moves. If no argument is given the program will
32 prompt the user for level of play. For use with
33 CHESSTOOL, see the documentation on that program.
34
35 Once _\bC_\bh_\be_\bs_\bs is invoked, the program will display the board
36 and prompt the user for a move. To enter a move, use the
37 notation 'e2e4' where the first letter-number pair indi-
38 cates the origination square and the second letter-number
39 pair indicates the destination square. An alternative is
40 to use the notation 'nf3' where the first letter indicates
41 the piece type (p,n,b,r,q,k). To castle, type the origin
42 and destination squares of the king just as you would do
43 for a regular move, or type "o-o" for kingside castling
44 and "o-o-o" for queenside.
45
46C\bCO\bOM\bMM\bMA\bAN\bND\bDS\bS
47 In addition to legal moves, the following commands are
48 available as responses.
49
50 _\bb_\be_\be_\bp -- causes the program to beep after each move.
51
52 _\bb_\bd -- updates the current board position on the display.
53
54 _\bb_\bo_\bo_\bk -- turns off use of the opening library.
55
56 _\bb_\bo_\bt_\bh -- causes the computer to play both sides of a chess
57 game.
58
59
60
614.4BSD 1
62
63
64
65
66
67
68
69
70Chess(GNU) BSD Reference Manual Chess(GNU)
71
72
73 _\bb_\bl_\ba_\bc_\bk -- causes the computer to take the black pieces with
74 the move and begin searching.
75
76 _\bl_\be_\bv_\be_\bl -- allows the user to set time controls such as 60
77 moves in 5 minutes etc. In tournament mode, the program
78 will vary the time it takes for each move depending on the
79 situation. If easy mode is disabled (using the 'easy'
80 command), the program will often respond with its move
81 immediately, saving time on its clock for use later on.
82
83 _\bd_\be_\bp_\bt_\bh -- allows the user to change the search depth of the
84 program. The maximum depth is 29 ply. Normally the depth
85 is set to 29 and the computer terminates its search based
86 on elapsed time rather than depth. Using the depth com-
87 mand allows setting depth to say 4 ply and setting
88 response time to a large number such as 9999 seconds. The
89 program will then search until all moves have been exam-
90 ined to a depth of 4 ply (with extensions up to 11 addi-
91 tional ply for sequences of checks and captures).
92
93 _\be_\ba_\bs_\by -- toggles easy mode (thinking on opponents time) on
94 and off. The default is easy mode ON. If easy mode is
95 disabled, the user must enter a 'break' or '^C' to get the
96 programs attention before entering each move.
97
98 _\be_\bd_\bi_\bt -- allows the user to set up a board position. In
99 this mode, the '#' command will clear the board, the 'c'
100 command will toggle piece color, and the '.' command will
101 exit setup mode. Pieces are entered by typing a letter
102 (p,n,b,r,q,k) for the piece followed by the coordinate.
103 For example "pb3" would place a pawn on square b3.
104
105 _\bf_\bo_\br_\bc_\be -- allows the user to enter moves for both sides. To
106 get the program to play after a sequence of moves has been
107 entered use the 'white' or 'black' commands.
108
109 _\bg_\be_\bt -- retrieves a game from disk. The program will
110 prompt the user for a file name.
111
112 _\bh_\be_\bl_\bp -- displays a short description of the commands.
113
114 _\bh_\bi_\bn_\bt -- causes the program to supply the user with its
115 predicted move.
116
117 _\bl_\bi_\bs_\bt -- writes the game moves and some statistics on
118 search depth, nodes, and time to the file 'chess.lst'.
119
120 _\bn_\be_\bw -- starts a new game.
121
122 _\bp_\bo_\bs_\bt -- causes the program to display the principle varia-
123 tion and the score during the search. A score of 100 is
124
125
126
1274.4BSD 2
128
129
130
131
132
133
134
135
136Chess(GNU) BSD Reference Manual Chess(GNU)
137
138
139 equivalent to a 1 pawn advantage for the computer.
140
141 _\br_\ba_\bn_\bd_\bo_\bm -- causes the program to randomize its move selec-
142 tion slightly.
143
144 _\br_\be_\bv_\be_\br_\bs_\be -- causes the board display to be reversed. That
145 is, the white pieces will now appear at the top of the
146 board.
147
148 _\bq_\bu_\bi_\bt -- exits the game.
149
150 _\bs_\ba_\bv_\be -- saves a game to disk. The program will prompt the
151 user for a file name.
152
153 _\bs_\bw_\bi_\bt_\bc_\bh -- causes the program to switch places with the
154 opponent and begin searching.
155
156 _\bu_\bn_\bd_\bo -- undoes the last move whether it was the computer's
157 or the human's. You may also type "remove". This is equiv-
158 alent to two "undo's" (e.g. retract one move for each
159 side).
160
161 _\bw_\bh_\bi_\bt_\be -- causes the computer to take the white pieces with
162 the move and begin searching.
163
164B\bBU\bUG\bGS\bS
165 Pawn promotion to pieces other than a queen is not
166 allowed. En-Passant does not work properly with
167 CHESSTOOOL. The transposition table may not work properly
168 in some positions so the default is to turn this off.
169
170S\bSE\bEE\bE A\bAL\bLS\bSO\bO
171 chesstool(6)
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
1934.4BSD 3
194
195
196
197
198