Article View: gnu.chess
Article #5124Bug in 4PL68 eval.c
From: Roger Uzun
Date: Fri, 18 Feb 1994 11:16
Date: Fri, 18 Feb 1994 11:16
46 lines
1918 bytes
1918 bytes
There is a problem in gnuchess 4pl68 around line 661, the slk
code looks wrong, a mix of 2 fixes that will probably fail.
In 4pl68 at line 661 we see:
if ( !slk && 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)) )) )
)
=====================
We should see:
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)) )) )
))
You should not do the code if slk is true...it would seem to me.
Can someone tell me if 4pl68 is correct as is? would
you want to have the || slk after CheckEETable(side) ???
-Roger
uzun@crash.cts.com
--------------------------------------------------------------
bix: ruzun
NET: uzun@crash.cts.com
Technical Details
Message-ID:
<CLF3C6.LKF@crash.cts.com>Path:
arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!netnews.upenn.edu!msuinfo!agate!howland.reston.ans.net!pipex!uunet!news.sprintlink.net!crash!uzunShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d71d,e2c0ababef50ab1a,start X-Google-Attributes: gid10d71d,public X-Google-ArrivalTime: 1994-02-18 03:16:53 PST Newsgroups: gnu.chess Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!netnews.upenn.edu!msuinfo!agate!howland.reston.ans.net!pipex!uunet!news.sprintlink.net!crash!uzun From: uzun@crash.cts.com (Roger Uzun) Subject: Bug in 4PL68 eval.c Organization: CTS Network Services (CTSNET/crash), San Diego, CA Date: Fri, 18 Feb 1994 11:16:53 GMT Message-ID: <CLF3C6.LKF@crash.cts.com> Sender: news@crash.cts.com (news subsystem) Nntp-Posting-Host: crash.cts.com Lines: 46