Article View: gnu.chess
Article #4667Re: repetition bug (with fix)
From: Urban Koistinen
Date: Fri, 06 Jan 1995 09:10
Date: Fri, 06 Jan 1995 09:10
21 lines
1560 bytes
1560 bytes
In <9501060403.AA21108@aba.nsrc.nus.sg> kongsian@nsrc.nus.SG (Kong Sian) writes: :Urban wrote: :> 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). No, I meant the loop should go one move less back. I wrote code to see if a square with a pawn on it were touched by a move that were taken back, and there was. I might however have made a mistake. It should be easy enough for you to test. (Put code in the repetition code to scream and exit if a square with a pawn on it is touched by the unmade move) The 3.1 code say i > Game50, not >=. -- Urban Koistinen - md85-epi@nada.kth.se Stop software patents, interface copyrights: contact lpf@uunet.uu.net
Technical Details
Message-ID:
<3ej1d9$eeg@news.kth.se>Path:
arc1-ca.pugleaf.net!nntp.gmd.de!newsserver.jvnc.net!yale.edu!spool.mu.edu!uwm.edu!vixen.cso.uiuc.edu!howland.reston.ans.net!pipex!sunic!news.kth.se!hemul.nada.kth.se!md85-epiReferences:
<3egikc$2rq@news.kth.se> <9501060403.AA21108@aba.nsrc.nus.sg>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-06 01:10:00 PST Path: arc1-ca.pugleaf.net!nntp.gmd.de!newsserver.jvnc.net!yale.edu!spool.mu.edu!uwm.edu!vixen.cso.uiuc.edu!howland.reston.ans.net!pipex!sunic!news.kth.se!hemul.nada.kth.se!md85-epi From: md85-epi@hemul.nada.kth.se (Urban Koistinen) Newsgroups: gnu.chess Subject: Re: repetition bug (with fix) Date: 6 Jan 1995 09:10:00 GMT Lines: 21 Distribution: gnu Message-ID: <3ej1d9$eeg@news.kth.se> References: <3egikc$2rq@news.kth.se> <9501060403.AA21108@aba.nsrc.nus.sg> NNTP-Posting-Host: hemul.nada.kth.se Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit