🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.chess
Article #2454

Re: compiling 5.0 under Red Hat

#2454
From: George Smith
Date: Thu, 04 May 2000 00:00
43 lines
2277 bytes
mcriley@post.netlink.se (Stefan Fredriksson) writes:

> On 03 May 2000 12:32:00 +0200, George Smith <smithg@rz.uni-potsdam.de> wrote:
> >u35105148@telia.com (McRiley) writes:
[...]
> >> I have also versions where I tweaked the timemanaging abit and fixed the
> >> book code .It has a bug where adding "!" and/or "?" would do the opposit
> >> to what it is suppose to do. Not fun at all I tell you :)

What would I have to change to fix that bug? The only place where I have
been able to find 50, ! and ? close to each other in book.c is:

	    epsilon = 0;
	    if (smallbuf[strlen(smallbuf)-1] == '?') {
		epsilon = -50;
	    } else if (smallbuf[strlen(smallbuf)-1] == '!') {
		epsilon = 50;
	    }

Later on I see:

		if (!found) { 
		  bookpos[bookcnt].key = HashKey;
	          bookpos[bookcnt].score = BookSearch() + epsilon;
		  bookcnt++;
		}

Before reading further, please get ready to excuse my naive attempt at 
understanding C code! Here it seems that epsilon gets a value of -50 
for ? and 50 for !, as it should. It would seem to me that the bug must 
be somewhere else.

[...]
> Atleast now I know why it played wierd lines even though I dodnt want it :).
> Also, if you are going to make your own book, change the valuve of '50' for
> "?" and "!" moves to something much higher like 200 or so.

Where would I set the higer value. In the above place (i.e., replace 50 with 
200 and -50 with -200)?

Thanks,

George Smith
Technical Details
Message-ID: <m21z3ilesx.fsf@bloomfield.phil1.uni-potsdam.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <m2wvlmtmvo.fsf@bloomfield.phil1.uni-potsdam.de> <m2wvljvofq.fsf@bloomfield.phil1.uni-potsdam.de> <956834269.835518@news2.cybercity.dk> <m2d7n3divz.fsf@bloomfield.phil1.uni-potsdam.de> <957352612.667772@news2.cybercity.dk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d71d,28059c8359fec79f
X-Google-Attributes: gid10d71d,public
From: George Smith <smithg@rz.uni-potsdam.de>
Subject: Re: compiling 5.0 under Red Hat
Date: 2000/05/04
Message-ID: <m21z3ilesx.fsf@bloomfield.phil1.uni-potsdam.de>
X-Deja-AN: 619105972
References: <m2wvlmtmvo.fsf@bloomfield.phil1.uni-potsdam.de> <m2wvljvofq.fsf@bloomfield.phil1.uni-potsdam.de> <956834269.835518@news2.cybercity.dk> <m2d7n3divz.fsf@bloomfield.phil1.uni-potsdam.de> <957352612.667772@news2.cybercity.dk>
X-Complaints-To: usenet@zeppelin.rz.uni-potsdam.de
X-Trace: zeppelin.rz.uni-potsdam.de 957440722 2419 141.89.99.140 (4 May 2000 11:45:22 GMT)
Organization: University of Potsdam
NNTP-Posting-Date: 4 May 2000 11:45:22 GMT
Newsgroups: gnu.chess