🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.chess
Article #4665

Re: repetition bug (with fix)

#4665
From: Kong Sian
Date: Fri, 06 Jan 1995 04:22
33 lines
1952 bytes
> 
> Present condition:
> In the last 4.0 pl 73 version there is another bug in repetition.
> The loop examine one position too far back.
> Others have noted that there is something strange in repetition.
> The strangeness is that the loop will only be entered when there
> is at least 5 iterations, even though a repetition could occur
> after 4 half moves.
> 
> Possible consequences:
> For 5 iterations and less the problem is only some lost cycles but
> for even greater (pun intended) values it might cause the program
> to miscalculate.
> 
> Easy fix:
> Use ">" instead of ">=" in the repetition function in file search.c.

I think you mean use ">=" rather than ">" in the repetition function.
viz. 
if (GameCnt >= Game50 + 3).

I might be mistaken, but I believe Mike (mwm) did release a patch for
this.  Unfortunately I probably deleted it away, perhaps someone else
can check on whether such a patch was released.

One other bug in the repetition which I'm trying to figure out has
to do with probing the hash table.  The score from the hash table
is never "diluted" if a repetition is found whereas the score from
evaluate () is "diluted".  I'm not really sure of the right way of
doing it; maybe not probing the hash table at all when a repetition
is found might be one way.  Any thoughts?

Kong Sian
Technical Details
Message-ID: <9501060403.AA21108@aba.nsrc.nus.sg>
Path: arc1-ca.pugleaf.net!nntp.gmd.de!Germany.EU.net!howland.reston.ans.net!math.ohio-state.edu!cis.ohio-state.edu!nsrc.nus.SG!kongsian
References: <3egikc$2rq@news.kth.se>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d71d,447c0dc2f8d70554
X-Google-Attributes: gid10d71d,public
X-Google-ArrivalTime: 1995-01-05 20:22:15 PST
Path: arc1-ca.pugleaf.net!nntp.gmd.de!Germany.EU.net!howland.reston.ans.net!math.ohio-state.edu!cis.ohio-state.edu!nsrc.nus.SG!kongsian
From: kongsian@nsrc.nus.SG (Kong Sian)
Newsgroups: gnu.chess
Subject: Re: repetition bug (with fix)
Date: 5 Jan 1995 23:22:15 -0500
Organization: GNUs Not Usenet
Lines: 33
Sender: daemon@cis.ohio-state.edu
Distribution: gnu
Message-ID: <9501060403.AA21108@aba.nsrc.nus.sg>
References: <3egikc$2rq@news.kth.se>