File gnuchess.6 of Package gnuchess
.TH gnuchess 6
gnuchess \- Chess
.B [-A aging-rate]
.B [-b bookfile]
.B [-B binbookfile]
.B [-C cache-table-size]
.B [[-|+]D ]
.B [[-|+]E ]
.B [[-|+]e ]
.B [[-|+]F ]
.B [-H hash-depth]
.B [[-|+]h ]
.B [-L language]
.B [-l listfile]
.B [[-|+]p ]
.B [-P plys]
.B [-r length]
.B [-s savefile]
.B [-S binbooksize]
.B [-c hashfile-size]
.B [-T transition-table-size]
.B [-z search-fuzz]
.B arg1 arg2
plays a game of chess against the user or it plays against itself.
is an updated version of the GNU chess playing program.
It has a simple alpha-numeric board display, an IBM PC compatible interface,
or it can be compiled for use with the
program on a SUN workstation or with the
program under X-windows.
To invoke the program type:
- simple curses based version
- fancy version using curses and inverse video on UNIX, or IBM PC cursor
controls and characters on MSDOS
- ASCII based version
- chesstool compatible version
- xboard compatible version
.SH TIME CONTROLS
If one argument is given, it is the search time per move in
.B gnuchess 30
will generate one move every 30 seconds, while
.B gnuchess 5:00
will generate one move every 5 minutes.
If two or more arguments are given, they will be used to set tournament
time controls with the first argument of each pair being the number of moves and the second
being the total clock time in minutes[:seconds]. Thus, entering
.B gnuchess 60 5
the clocks for 5 minutes (300 seconds) for the first 60 moves,
.B gnuchess 30 3:30
will allow 3 minutes and 30 seconds for 30 moves.
.B gnuchess 30 5 1 :30
will allow 5 minutes for the first 30 moves and 30 seconds for each move after that.
Up to 4 pairs of controls may be specified.
If no argument is given the program will prompt the user for level of play.
For use with
see the documentation on those programs.
file if it is present. It then looks for a
file. If it is present it adds its contents to the
data. If the
file is writable a new combined
file is written.
consists of a sequence of openings.
An opening begins with a line starting with a
, the rest of the line is comments.
Following this is a series of moves in algebraic notation alternating white
and black separated by white space. A move may have a
after it indicating this move should never be made in this position.
Moves are stored as position:move so transpositions between openings
can take place.
The hashfile if created should be on the order of 4 megabytes or
.B gnuchess -c 22.
This file contains positions and moves learned from previous games.
If a hashfile is used the computer makes use of the experience it
gained in past games. Tests run so far show that it plays no worse
with the hashfile than without, but it is not clear yet whether
it provides a real advantage.
.SH LEGAL MOVES
Piece letters and legal castling notation is determined by the language file.
What is specified here is the default English.
is invoked, the program will display the board and prompt the user
for a move. To enter a move, use the notation
where the first letter-number pair indicates the origination square
and the second letter-number pair indicates the destination square.
An alternative is to use the notation
where the first letter indicates the piece type (p,n,b,r,q,k).
To castle, type the origin and destination squares
of the king just as you would do for a regular move, or type
for kingside castling and
for queenside. To promote a pawn append the type of the new piece to the move, as in
.SH "FUNCTION LETTERS"
.B -L lang
.I lang from the file
If -L is not specified it defaults to the language used in the first line in the file.
.B gnuchessr -L ger
will use the german language.
.B -A aging-rate
Specify aging rate for hash table entries
Do [do not] search on opponents time.
.B -b bookfile
Use bookfile for opening book.
.B -B binbookfile
Use binbookfile for binary opening book.
.B -C cache-size
Specify evaluation cache table size (in entries).
Toggle DEEPNULL at runtime.
Toggle flag.neweval to force evaluations instead of estimates
.B -H hash-depth
pecify depth in plys for hashing.
.B -S size
Size of binbookfile for memory based and GDX books. For creating a binbookfile.
.B -P plylevels
Number of plys to include in the binbookfile. For generating a binbookfile.
.B -c size
Create a new HASHFILE. File size is 2^size entries of approximately 65 bytes.
Do [do not] use hashfile.
.B -l pathname
Pathname of the loadfile use with the
.B -r length
Rehash length times in searching entries for position in transposition table.
.B -s pathname
Pathname of the save file to use with the
Show statistics for HASHFILE
.B -T size
Set the transposition table size to size entries. (minimum is MINTTABLE)
Show version and patchlevel.
.B -x value
as the evaluation window
In addition to legal moves, the following commands are available as responses.
command names are determined by the
file and may vary with the implementation. This is default English.
-- allow algebraic input (not implemented)
-- change Alpha window (default score + 90)
-- change Beta window (default score - 90)
-- causes the program to beep after each move.
-- updates the current board position on the display.
-- Print out all moves for this position from the book as: move response value
-- turns off use of the opening library.
-- causes the computer to play both sides of a chess game.
-- causes the computer to take the black pieces.
If the computer is to move first the
command must be given.
-- Print out opening information for this game - lists ECO # and variations
-- show coordinates on the display (visual only)
-- allows the value of
to be modified.
-- asks for a piece as color piece, as wb or bn, and shows its calculated value on
-- sets level of debugging output if compiled with debug options.
-- allows the user to change the
search depth of the program. The maximum depth is 29 ply.
Normally the depth is set to 29 and the computer terminates
its search based on elapsed time rather than depth.
If depth is set to (say) 4 ply,
the program will search until all moves
have been examined to a depth of 4 ply (with extensions up
to 11 additional ply for sequences of checks and captures).
If you set a maximum time per move and also use the depth command,
the search will stop at the specified time or the specified depth, whichever
-- toggles easy mode (thinking on opponents time)
on and off. The default is easy mode ON. If easy mode is disabled,
the keyboard is polled for input every so often and when input is
seen the search is terminated. It may also be terminated with a
-- allows the user to set up a board position.
- command will clear the board.
- toggle piece color.
- command will exit setup mode.
- place a pawn on b3
Pieces are entered by typing a letter (p,n,b,r,q,k) for
the piece followed by the coordinate.
The usual warning about the
.I language file
-- exits gnuchess.
-- tells the computer to move first. Computer begins searching for a move.
(same as "go").
-- allows the user to enter moves for both
sides. To get the program to play after a sequence of moves
has been entered use the 'white' or 'black' command followed by 'go'.
-- toggles game mode time control. Assumes the time specified for time control
is the time for a complete game. Input with the level command should be the game time
and the expected number of moves in a game.
-- retrieves a game from disk. The program will
prompt the user for a file name.
-- tells the computer to move first. Computer begins searching for a move.
(same as "first").
-- use/don't use hashfile.
-- think on opponents time
-- allows the user to change the minimum depth for using the hashfile and the number of moves from the
begining of the game to use it.
-- displays a short description of the commands and the current status of options.
-- causes the program to supply the user with its predicted move.
-- allows the user to set time controls such as
60 moves in 5 minutes etc. In tournament mode, the program will
vary the time it takes for each
move depending on the situation. If easy mode is disabled (using
the 'easy' command), the program
will often respond with its move immediately, saving time on
its clock for use later on.
-- writes the game moves and some statistics
on search depth, nodes, and time to the file 'chess.lst'.
-- toggle material flag - draws on no pawns and both sides < rook
.B Mwpawn, Mbpawn, Mwknight, Mbknight, Mwbishop, Mbbishop
-- print out static position evaluation table
-- starts a new game.
-- evaluates the board and shows the point score for each piece. The total score for
a position is the sum of these individual piece scores.
-- causes the program to display the principle
variation and the score during the search. A score of
100 is equivalent to a 1 pawn advantage for the computer.
-- turn off the post display.
-- exits the game.
-- causes the program to randomize its move
-- set recapture mode.
-- backout the last level for both sides. Equal to 2
-- causes the board display to be reversed. That
is, the white pieces will now appear at the top of the board.
-- reverse board display.
-- Compatibility with Unix chess and the nchesstool. Set up a board position.
Eight lines of eight characters are used to setup the board. a8-h8 is the
first line. Black pieces are represented by uppercase characters.
-- (gnuchessn only) add stars (*) to black pieces.
-- saves a game to disk. The program will prompt
the user for a file name.
-- causes the program to switch places with
the opponent and begin searching.
-- performs some speed tests for MoveList and CaptureList generation, and ScorePosition position scoring
for the current board.
.B time otim
set computers time remaining, intended for synchronizing clocks among multiple players.
set opponents time remaining, intended for synchronizing clocks among multiple players.
-- undoes the last move whether it was the computer's
or the human's. You may also type "remove". This is equivalent
to two "undo's" (e.g. retract one move for each side).
-- causes the computer to take the white pieces. If the computer is to move
command must be given.
-- read an
-- change X window. The window around alpha/beta used to determine whether the position
should be scored or just estimated.
.SH SEE ALSO