🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.chess
Article #1882

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

#1882
From: Simon Waters
Date: Thu, 17 Jan 2002 18:59
46 lines
2765 bytes
Goswin Brederlow wrote:
> 
> 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?

Probably. 

> Does it grow with each game I play? Do I realy need write rights?

It only grows on a "book add", and it only accepts games from
decent players, but it is conceited.

Write permission is only for some options, I think read only is
fine if you don't use the options.

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

Someone probably crashes and burns - try it.

There isn't enough sanity checking on writes to files, reads
aren't that bad.
 
> 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

Always interested - I'm doing this to learn these things -
mostly I've think I've come to appreciate Java better so far ;)

As of last week there aren't any compiler warnings in the CVS
version at Savannah (finally). So probably some duplication of
effort going on here.

 Thanks,

 Simon

Bounds checking next - what is the best open source tool I
wonder?
Technical Details
Message-ID: <3C471EFE.3AE8A47B@wretched.demon.co.uk>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!dispose.news.demon.net!news.demon.co.uk!demon!wretched.demon.co.uk!not-for-mail
References: <87k7uhh4tl.fsf@dual.intern.brederlow.de> <3C469CE2.881B939@wretched.demon.co.uk> <87bsftq84i.fsf@dual.intern.brederlow.de>

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 11:00:02 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!dispose.news.demon.net!news.demon.co.uk!demon!wretched.demon.co.uk!not-for-mail
From: Simon Waters <Simon@wretched.demon.co.uk>
Newsgroups: gnu.chess
Subject: Re: book.dat and some other patches  [Was: Re: book.dat]
Date: Thu, 17 Jan 2002 18:59:10 +0000
Organization: Eighth Layer Limited
Message-ID: <3C471EFE.3AE8A47B@wretched.demon.co.uk>
References: <87k7uhh4tl.fsf@dual.intern.brederlow.de> <3C469CE2.881B939@wretched.demon.co.uk> <87bsftq84i.fsf@dual.intern.brederlow.de>
NNTP-Posting-Host: wretched.demon.co.uk
X-NNTP-Posting-Host: wretched.demon.co.uk:193.237.109.203
X-Trace: news.demon.co.uk 1011293960 nnrp-01:10935 NO-IDENT wretched.demon.co.uk:193.237.109.203
X-Complaints-To: abuse@demon.net
X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.19 i686)
X-Accept-Language: en-GB, en-US, en
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 46