Article View: gnu.chess
Article #5096More bug fixes
From: Chua Kong Sian
Date: Wed, 09 Feb 1994 07:52
Date: Wed, 09 Feb 1994 07:52
44 lines
1866 bytes
1866 bytes
More bug fixes for pl67. In search.c somewhere near line 1201 is the
following.
if(node->score == 9998 && !ChkFlag[ply] ) {node->flags |= draw;
node->score = ((side == computer) ? contempt : -contempt);}
This is wrong and should be replace with the following.
if(node->score == 9999-ply && !ChkFlag[ply] ) {node->flags |= draw;
node->score = ((side == computer) ? contempt : -contempt);}
The score lone king bug again appears. In eval.c , evaluate(), replace
if ( ply == 1 ||
#ifdef CACHE
(CheckEETable (side)) ||
#endif
slk ||
(flag.neweval ? ((
(ply==Sdepth || (!ext && depth == 0 && s>=alpha-30 &&
s<=beta+30)) ||
(ext && (s >= (alpha - 30) && s <= (beta + 30)) )) )
:
((Sdepth == ply) ||
(ply > Sdepth && (s >= (alpha - 30) && s <= (beta + 30)) )) )
)
with
if ( !slk && (ply == 1 ||
#ifdef CACHE
(CheckEETable (side)) ||
#endif
(flag.neweval ? ((
(ply==Sdepth || (!ext && depth == 0 && s>=alpha-30 &&
s<=beta+30)) ||
(ext && (s >= (alpha - 30) && s <= (beta + 30)) )) )
:
((Sdepth == ply) ||
(ply > Sdepth && (s >= (alpha - 30) && s <= (beta + 30)) )) )
))
Technical Details
Message-ID:
<2ja4np$g50@nuscc.nus.sg>Path:
arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!raffles.technet.sg!nuscc.nus.sg!nsrccksShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d71d,a0a9a5b3f5f736ff,start X-Google-Attributes: gid10d71d,public X-Google-ArrivalTime: 1994-02-08 23:52:25 PST Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!raffles.technet.sg!nuscc.nus.sg!nsrccks From: nsrccks@leonis.nus.sg (Chua Kong Sian) Newsgroups: gnu.chess Subject: More bug fixes Date: 9 Feb 1994 07:52:25 GMT Organization: National University of Singapore Lines: 47 Message-ID: <2ja4np$g50@nuscc.nus.sg> NNTP-Posting-Host: leonis.nus.sg X-Newsreader: TIN [version 1.2 PL0]