🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.chess
Article #1881

book.dat and some other patches [Was: Re: book.dat]

#1881
From: Goswin Brederlow
Date: Thu, 17 Jan 2002 16:01
68 lines
3723 bytes
Simon Waters <Simon@wretched.demon.co.uk> writes:

> Goswin Brederlow wrote:
> > 
> > Couldn't find anything about it on
> > http://www.gnu.org/software/chess/chess_faq.html
> 
> It has to be in the "right" directory at the moment.
> 
> "right" being the current directory of the top of my head.

That helps. I also now saw that it opens the book on demand when I
enter the first move and says so when I'm not using xboard.

> i.e. If you run "xboard -fcp "/usr/local/bin/gnuchess"
> -fd"/usr/local/lib/gnuchess"
> 
> Put book.dat in /usr/local/lib/gnuchess

So I guess the right way would be to use a wraper script that checks
for user parameter and then cd to eigther the system-wide book or the
users private one and start gnuchess?

> Apologies if you run Windows, but you can work out the analogous
> settings with winboard.
>
> The current directory should be writable for the person running
> the program if you want logs, and game archive running with
> relevant options.

Does it grow with each game I play? Do I realy need write rights?
If so I would have to change it to copy the system-wide book on first
run an store it in the players homedir or something. Or actually a
system wide book file might be fun if multiple persons play.

What happen if the book is world writeable and two players use
gnuchess on the same time (and they both write...)

> Stefan has volunteered to sort out the PGN file, Thanks!
> 
> There were nearly 25,000 duplicate games in there
> 
> Before I gave it to Stefan I dropped, or corrected, all the
> games that give errors on compiling the book, and dropped all
> duplicates (SCID is a brilliant piece of free software!), and
> cleaned up players names (SCID is a brilliant piece of free
> software!), so the mistakes if any probably won't be Stefan's
> fault but mind ;)
> 
> We'll release a cleaner and better book with 5.03 - promise.
> 
> Although if it gets much bigger we might be tempted to release
> it in SCID not PGN format?!

Duplicate suck. Waste of precious time. But apart from that gnuchess
get smarter with more games, doesn't it? The more the marier.

I fixed some compiler warnings and an error in the Rand32() function
(must be int on 64 Bit cpus, not long) and wrote a converter for the
book.dat file to/from host byteorder/padding to a general packed big
endian byteorder. Save a lot of time during compilation for Debian,
because one book now fits all architectures.

Intrested?
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=129653&repeatmerged=yes

May the Source be with you.
                        Goswin
Technical Details
Message-ID: <87bsftq84i.fsf@dual.intern.brederlow.de>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!hub1.nntpserver.com!newsfeed01.sul.t-online.de!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail
References: <87k7uhh4tl.fsf@dual.intern.brederlow.de> <3C469CE2.881B939@wretched.demon.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d71d,1243ad013bd6d81e
X-Google-Attributes: gid10d71d,public
X-Google-ArrivalTime: 2002-01-17 08:04:02 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!hub1.nntpserver.com!newsfeed01.sul.t-online.de!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail
From: Goswin Brederlow <goswin.brederlow@student.uni-tuebingen.de>
Newsgroups: gnu.chess
Subject: book.dat and some other patches  [Was: Re: book.dat]
Date: 17 Jan 2002 17:01:33 +0100
Organization: T-Online
Lines: 68
Sender: mrvn@dual
Message-ID: <87bsftq84i.fsf@dual.intern.brederlow.de>
References: <87k7uhh4tl.fsf@dual.intern.brederlow.de> <3C469CE2.881B939@wretched.demon.co.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.t-online.com 1011283293 03 6964 pRafT0sSSYYPR4 020117 16:01:33
X-Complaints-To: abuse@t-online.com
X-Sender: 520045864123-0001@t-dialin.net
User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp)