4.4BSD snapshot (revision 8.1); add 1993 to copyright
[unix-history] / usr / src / games / chess / chess.6
CommitLineData
5aacaf33
KB
1.TH CHESS 6 "" GNU
2.SH NAME
3chess \- GNU chess
4.SH SYNOPSIS
5.B chess
6[
7.B arg1 arg2
8]
9.SH DESCRIPTION
10.I Chess
11plays a game of chess against the user or it plays against itself.
12.PP
13.I Chess
14has a simple alpha-numeric board display or it can be compiled for
15use with the CHESSTOOL program on a SUN workstation.
16The program gets its opening moves from the file gnuchess.book which
17should be located in the same directory as gnuchess.
18To invoke the prgram, type 'gnuchess' or type 'chesstool gnuchess'
19on a SUN workstation where 'CHESSTOOL' is installed.
20The 'gnuchess' command can be followed by up to 2 command line arguments.
21If one argument is given it determines the programs search time in
22seconds. If two arguments are given, they will be used to set tournament
23time controls with the first argument being the number of moves and the second
24being the total clock time in minutes. Thus, entering 'chess 60 5' will set
25the clocks for 5 minutes (300 seconds) for the first 60 moves.
26If no argument is given the program will prompt the user for level of
27play.
28For use with CHESSTOOL, see the documentation on that program.
29.PP
30Once
31.I Chess
32is invoked, the program will display the board and prompt the user
33for a move. To enter a move, use the notation 'e2e4' where the first
34letter-number pair indicates the origination square
35and the second letter-number pair indicates the destination square.
36An alternative is to use the notation 'nf3' where
37the first letter indicates the piece type (p,n,b,r,q,k).
38To castle, type the origin and destination squares
39of the king just as you would do for a regular move, or type
40"o-o" for kingside castling and "o-o-o" for queenside.
41.SH COMMANDS
42.PP
43In addition to legal moves, the following commands are available as responses.
44.PP
45.I beep
46-- causes the program to beep after each move.
47.PP
48.I bd
49-- updates the current board position on the display.
50.PP
51.I book
52-- turns off use of the opening library.
53.PP
54.I both
55-- causes the computer to play both sides of a chess game.
56.PP
57.I black
58-- causes the computer to take the black pieces with the move
59and begin searching.
60.PP
61.I level
62-- allows the user to set time controls such as
6360 moves in 5 minutes etc. In tournament mode, the program will
64vary the time it takes for each
65move depending on the situation. If easy mode is disabled (using
66the 'easy' command), the program
67will often respond with its move immediately, saving time on
68its clock for use later on.
69.PP
70.I depth
71-- allows the user to change the
72search depth of the program. The maximum depth is 29 ply.
73Normally the depth is set to 29 and the computer terminates
74its search based on elapsed time rather than depth.
75Using the depth command allows setting depth to say
764 ply and setting response time to a large number such as
779999 seconds. The program will then search until all moves
78have been examined to a depth of 4 ply (with extensions up
79to 11 additional ply for sequences of checks and captures).
80.PP
81.I easy
82-- toggles easy mode (thinking on opponents time)
83on and off. The default is easy mode ON. If easy mode is disabled,
84the user must enter a 'break' or '^C' to get the programs
85attention before entering each move.
86.PP
87.I edit
88-- allows the user to set up a board position.
89In this mode, the '#' command will clear the board, the 'c'
90command will toggle piece color, and the '.' command will exit
91setup mode. Pieces are entered by typing a letter (p,n,b,r,q,k) for
92the piece followed by the coordinate. For example "pb3" would
93place a pawn on square b3.
94.PP
95.I force
96-- allows the user to enter moves for both
97sides. To get the program to play after a sequence of moves
98has been entered use the 'white' or 'black' commands.
99.PP
100.I get
101-- retrieves a game from disk. The program will
102prompt the user for a file name.
103.PP
104.I help
105-- displays a short description of the commands.
106.PP
107.I hint
108-- causes the program to supply the user with
109its predicted move.
110.PP
111.I list
112-- writes the game moves and some statistics
113on search depth, nodes, and time to the file 'chess.lst'.
114.PP
115.I new
116-- starts a new game.
117.PP
118.I post
119-- causes the program to display the principle
120variation and the score during the search. A score of
121100 is equivalent to a 1 pawn advantage for the computer.
122.PP
123.I random
124-- causes the program to randomize its move
125selection slightly.
126.PP
127.I reverse
128-- causes the board display to be reversed. That
129is, the white pieces will now appear at the top of the board.
130.PP
131.I quit
132-- exits the game.
133.PP
134.I save
135-- saves a game to disk. The program will prompt
136the user for a file name.
137.PP
138.I switch
139-- causes the program to switch places with
140the opponent and begin searching.
141.PP
142.I undo
143-- undoes the last move whether it was the computer's
144or the human's. You may also type "remove". This is equivalent
145to two "undo's" (e.g. retract one move for each side).
146.PP
147.I white
148-- causes the computer to take the white pieces
149with the move and begin searching.
150.SH BUGS
151.PP
152Pawn promotion to pieces other than a queen is not allowed.
153En-Passant does not work properly with CHESSTOOOL.
154The transposition table may not work properly in some
155positions so the default is to turn this off.
156.fi
157.SH SEE ALSO
158.nf
159chesstool(6)
160.fi
161