File: INSTALL

package info (click to toggle)
gnuchess 6.2.9-0.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,088 kB
  • sloc: cpp: 21,836; sh: 5,283; lex: 418; ansic: 213; makefile: 88; ruby: 51; sed: 16
file content (86 lines) | stat: -rw-r--r-- 2,238 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
INSTALL of GNU Chess

  Copyright (C) 2001-2012 Free Software Foundation, Inc.

  Copying and distribution of this file, with or without modification,
  are permitted in any medium without royalty provided the copyright
  notice and this notice are preserved.

The usual procedure should apply. After you have unpacked
the sources, type (in the sources top-level directory)

	./configure
	make

You may also pass several other options such as compiler options
to configure, just type ./configure --help for advice. In particular,
you may experiment with compiler optimization flags, which are added
easily as (assuming you have a bourne-type shell)

CFLAGS="-O3 -ffast-math" ./configure

The build should work with gcc. It should also work with other
compilers.

Test gnuchess by typing

	cd src
	./gnuchess on GNU/Linux / Unix / Mac OS X
	easy
	new
	post
	depth 8
	go
	quit

You should see an 8-ply search. Most machines these
days should finish it within a few seconds. If not,
Control-C out, and do 

	depth 6
	go
	quit

instead.

If you got this far, congratulations.

If you want to install the software in some global directory,
by default /usr/local, become root and type

	make install

If you want to install the sources in some other directory
than /usr/local, replace the first line by

	./configure --prefix=/my/favourite/dir 

You can build an opening book which may enhance the value
of gnuchess quite a lot. In order to do so, get the file
book_1.02.pgn (http://ftp.gnu.org/gnu/chess/book_1.02.pgn.gz)
and type the following.

	./gnuchess
	book add book_1.02.pgn
	quit

This may take some minutes, depending on the speed of your
machines. The book is quite large (180,000 master games).
If you want a smaller book or you do not want to wait, do the
following instead:

	head -30000 book_1.02.pgn > smallbook.pgn
	./gnuchess
	book add smallbook.pgn
	quit

This will make a much smaller book.

In order to use the book, edit gnuchess.ini and set the value of
'Book' or 'OwnBook' to true.

You can run the program in UCI mode, which makes it externally behave as 
a UCI engine. This is not intended for interactive usage, but for backend 
engine of a UCI-enabled chess graphical interface. Type the following:

	./gnuchess -u