Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 40925 - Missing opening book in gnuchess
Summary: Missing opening book in gnuchess
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-08 19:56 UTC by andrey kartashov
Modified: 2004-02-22 14:03 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description andrey kartashov 2004-02-08 19:56:13 UTC
games-board/gnuchess-5.07
is missing an opening book, which makes it play much worse than it can.
Just observe how much time it takes for it to make even the first move.

Reproducible: Always
Steps to Reproduce:
1. Start gnuchess
2. make a first move, observe that it takes long time for gnuchess to reply
3. observe that there is no much variation in it's game

Actual Results:  
gnuchess plays a boring game:)

Expected Results:  
gnuchess picks one of the common openings at random

I think it's fair to not include a large opening book with gnuchess package
because it takes long time to download, but how about a different package?
I've made a local one, called it gnuchess-book, here is my lame ebuild file for it:

gnuchess-book-1.01.ebuild
===============

inherit games

DESCRIPTION="Opening book for gnuchess"
HOMEPAGE="http://www.gnu.org/software/chess/chess.html"
SRC_URI="mirror://gnu/chess/${P}.pgn.gz"

KEYWORDS="x86 ppc sparc alpha"
LICENSE="GPL-2"
SLOT="0"

DEPEND="gnuchess"

src_compile() {
   cd ${WORKDIR}
   echo  -e 'book add gnuchess-book-1.01.pgn\nquit\n' | /usr/games/bin/gnuchess
}

src_install () {
        install -D -g games -o games ${WORKDIR}/book.dat
${D}/usr/share/games/gnuchess/book.dat
}

===============

Don't laugh, it's my first ebuild:) The archived book can be found on any of the
gnu mirrors like ftp://ftp.cs.columbia.edu/archives/gnu/prep/chess/book_1.01.pgn.gz

In the ebuild I've renamed it to gnuchess-book-1.01.pgn.gz


Here is the 'files/digest-gnuchess-book-1.01' file:

=========

MD5 7aa8719681af962387b689969a34c058 gnuchess-book-1.01.pgn.gz 26070544

=========
Comment 1 SpanKY gentoo-dev 2004-02-22 14:03:15 UTC
i cleaned up the ebuild a bit and added to portage ...

i used the 1.00 version cause i couldnt see to find 1.01 on gnu servers