Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 40925
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Games <games@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: andrey kartashov <andrey@vindigo.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 40925 depends on: Show dependency tree
Bug 40925 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-02-08 19:56 0000
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 From SpanKY 2004-02-22 14:03:15 0000 -------
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

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug