NOTE: This FAQ is fully updated to cover the GNU Chess 5.07 release announced August 2003.
NOTE: All versions before 5.04 contain known security related bugs, we advise running the latest version.
gnu.chess and info-gnu-chess are not for general chess or computer chess discussion. You won't be flamed if you post such messages here, but you will find more information in other places. See topic [A.3] below.
PLEASE DO NOT try to start or play chess games by posting messages to gnu.chess. Instead, read the rec.games.chess FAQ (see topic [A.3]) to learn about the IECG, the IECC, and other groups that you can join to find opponents, and send one or more of them email to join.
The newsgroup and mailing list are gatewayed bidirectionally; that is, any article posted on the newsgroup is automatically forwarded to the mailing list, and any mail sent to the list is automatically forwarded to the newsgroup.
If you want to be added to or deleted from the mailing list, mail to info-gnu-chess-request@gnu.org (not to the list or newsgroup itself).
For general news and information about chess, try the newsgroup hierarchy rec.games.chess.*, especially the groups rec.games.chess.misc and rec.games.chess.computer. Both of the latter groups have very informative FAQs maintained by Steve Pribut; look for them on the newsgroups or at http://www.clark.net/pub/pribut/chess.html.
Like other GNU software, you can get GNU Chess, XBoard, and WinBoard by anonymous FTP from http://ftp.gnu.org/pub/gnu/ and its many mirror sites. Look in the subdirectories chess xboard, and winboard. The .tar.gz suffix on the files there indicates they were packed with tar and compressed with gzip. The .exe or .zip suffixes indicate files that were packed and compressed with zip.
For other chess software, or to play chess online for free, try the Internet Chess Library. Use anonymous FTP to connect to ftp.freechess.org, or go to the Web page http://www.freechess.org/. You can get chess software, game collections, the FAQ file for rec.games.chess, and other chess-related material there, in the directory pub/chess. The FTP server can automatically decompress files for you as you download them, useful if you don't have gzip.
Here is a sample anonymous ftp session. Some of the ftp server's responses are abbreviated, but all the commands you must type are included.
% ftp ftp.gnu.org Connected to ftp.gnu.org Name: anonymous Password: your-email-address@your-site ftp> binary 200 Type set to I. ftp> cd /pub/gnu/chess 250 CWD command successful. ftp> dir -rw-r--r-- 1 14910 wheel 1512181 May 20 00:52 chess-5.00.tar.gz ftp> get chess-5.00.tar.gz 150 BINARY connection for chess-5.00.tar.gz (500200 bytes). 226 Transfer complete. ftp> cd /pub/gnu/xboard ftp> dir -rw-r--r-- 1 14910 wheel 393119 May 20 00:25 xboard-4.0.3.tar.gz ftp> get xboard-4.0.3.tar.gz 150 BINARY connection for xboard-4.0.3.tar.gz (393119 bytes). 226 Transfer complete. ftp> quit
Tim Mann is the lead developer on XBoard and WinBoard and questions about those fine programs should be directed to him.
If you are using Unix, run the "script" program, run XBoard with the -debug flag (if you get as far as running it), do whatever is necessary to reproduce the problem, type "exit" to the shell, and mail us the resulting typescript file. We also need to know what hardware/operating system combination you are using. The command "uname -a" will usually tell you this; include its output in your typescript.
If you are using WinBoard run it with the -debug flag, and send us a copy of the WinBoard.debug file. If you aren't sure how to add command-line flags to WinBoard, you can hit Ctrl+Alt+F12 to create a WinBoard.debug file after WinBoard starts, but that is not as good, because a few messages that would have been printed at the start are lost.
Either way, please send us the exact text of the commands you typed and the output you got, not just your recollection of approximately what they were. The messages may seem meaningless to you, but they are very meaningful to us and essential for diagnosing problems.
You should be able to contact all the members of the project by sending mail to bug-gnu-chess@gnu.org. If you don't trust this list, you can send mail about this FAQ to Simon Waters (Simon@wretched.demon.co.uk); but send mail about XBoard or WinBoard to Tim Mann; Comments that are of interest to all users of the software should be posted to the gnu.chess newsgroup.
GNU Chess is a communal chess program. Contributors donate their time and effort in order to make it a stronger, better, sleeker program. Contributions take many forms: interfaces to high-resolution displays, opening book treatises, speedups of the underlying algorithms, additions of extra heuristics. These contributions are then distributed to the large user-base so that all may enjoy the fruits of our labor.
GNU Chess is written in C and should be portable to most general purpose computers.
For a test drive of the previous version, try WebChess, a World Wide Web interface provided by DJ Delorie. The URL is http://www.delorie.com/game-room/chess/.
The ratings that are commonly given for computer chess players are less meaningful than they may seem. Most computer chess players (including GNU Chess) do not play in tournaments against humans, or do so only rarely, so they do not have official ratings from FIDE, USCF, or other chess organizations.
Some people have methods for rating chess programs approximately by giving them a set of problems to work on and seeing how they do, or by having them play tournaments against each other. Any rating number produced by such means should be taken with a grain of salt; it may be only a rough approximation to the rating the program would achieve in over-the-board tournament competition against humans. The chess skills required for solving problems or playing against other computers are not necessarily the same as those required for play against humans. Also, of course, tournaments among computers can rate the computers only relative to one another, not relative to humans. Some of the computers need to be rated by other means to give the ratings a basis to start from.
Compared with human players, computer players are strong tactically but weak strategically, and are much better at blitz chess than at slow chess. These differences make it more difficult to assign a meaningful rating too.
Several computers do play regularly on the Internet chess servers and have achieved ratings there. These ratings have the advantage of being based on many games. On the other hand, ICS ratings are only roughly comparable to USCF or FIDE ratings. Many players have ICS ratings that are hundreds of points higher or lower than their USCF or FIDE ratings.
Finally, unlike dedicated chess machines, or PC chess programs that run on only a few different models of Intel processors, GNU Chess runs on many different kinds of CPU at many different speeds. Thus its strength depends on how fast a machine you run it on and how much optimization your C compiler does. Some people have formulas for estimating how a computer player's rating varies on faster or slower machines---see the rec.games.chess FAQ for more information---but these need to be taken with a grain of salt too.
All that said, here are some numbers.
- On the Free Internet Chess Server (freechess.org), GNU Chess 5.04 running on a Cyrix 166Mhz processor (Pentium 200MHz equivalent), with default settings attained a blitz rating of above 2100.
To unpack the GNU Chess distribution, chess-*.tar.gz, put it into a new, empty directory, cd there, and give this Unix command:
tar xvfz chess-*.tar.gzIf this command fails because you don't have gzip, see topic [A.3], and ask a local Unix expert if you need more help.
The above command will unpack all the files into a new directory. Next, cd into this new directory, cd into the "doc" subdirectory and read the README and INSTALL files.
GNU 5.03 release is the first to conform to the GNU configure; make ; make install installation scheme. The opening book will need to be created and placed in /usr/local/bin/book.dat (or other appropriate location) with appropriate privileges.
GNU CC is the supported compiler, but we make efforts to support other C compilers. If you encounter an issue with compiling GNU Chess with any current C compiler please report it as a bug, we might not fix it, but we like to know, and can share workarounds as they become available.
Occurs whenever gnuchess encounters a problem. Most recent cases occur only on SUN's a fix is available for the problem on Solaris, and is fixed in 5.03. Make sure you have the latest versions of GNU Chess and Xboard.
The default hashsize for 5.02 is too large for some older computers. Either issue the command "hashsize 1000" or recompile with smaller hashsize settings in common.h
The hashsize is the number of positions the computer remembers to spot transpositions in its analysis.
5.03 uses a smaller default hashsize.
The hashslots command line option can be used to increase the default hash table size. Increasing the hashsize usually improves the quality of chess played by the program. The value is currently rounded down to the nearest power of 2 (1024, 2048, 8096 etc).
A gremlin crept into the documentation. The command is "book add" not "book create".
This documentation error is corrected in 5.03.
GNU Chess version 5 only has one executable, unlike version 4. The xboard interface for GNU Chess is invoked using the command line option "--xboard"
Thus I use the following command to invoke xboard '/usr/local/bin/xboard -fcp "/usr/bin/gnuchess --xboard" -fd "/usr/local/bin" -scp "/usr/local/bin/gnuchess --xboard" -sd "/usr/local/bin"'
The GNU chess 5.02 download contains a 40 MB PGN book that must be compiled. In 5.03 this file is now a seperate file to download.
XBoard and WinBoard are graphical user interfaces for chess. XBoard runs on Unix systems, WinBoard on 32-bit Windows systems. Both programs display a chessboard on the screen, accept moves made with the mouse, and load and save games in Portable Game Notation (PGN). They serve as a front-end for many different chess services. The WinBoard distribution includes a port of GNU Chess. XBoard and WinBoard are free software. Xboard and Winboard from Tim Mann's web site (topic [A.3]).
With version 5.06 support for icsdrone has been introduced.
This is a resource provided for developers only.
ICD Corporation run a Computer Chess Club, which has a useful reference section as well as attracting some talented Chess programmers.
Copyright (C) 2002 Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA
Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.
Updated: $Date: 2004/06/20 16:52:27 $ $Author: srw $