Article View: gnu.chess
Article #5526Important patch to pl62
From: Ralf Stephan
Date: Tue, 29 Jun 1993 09:25
Date: Tue, 29 Jun 1993 09:25
33 lines
1699 bytes
1699 bytes
Apparently, the inclusion of CheckEETable() in eval.c resulted
in a bug in evaluate(), causing ScoreLoneKing() never been called.
Thus, the special endgame abilities of GNU chess are not active.
This patch will cure the bug, though now CheckEETable() is never
called when a lone king is on the board, but the evaluations under
ScoreLoneKing() aren't excessive, anyway. Maybe someone other
with more knowledge could fix this...
--- eval.c~ Tue Jun 22 15:49:32 1993
+++ eval.c Tue Jun 29 11:12:36 1993
@@ -663,13 +663,12 @@
(mtl[black] == valueK && (pmtl[white] == 0 || emtl[white] == 0)));
/* should we use the estimete or score the position */
- if ( ply == 1 ||
+ if (!slk && (ply == 1 ||
#ifdef CACHE
(CheckEETable (side)) ||
#endif
- slk ||
(Sdepth == ply) ||
- (ply > Sdepth && (s >= (alpha - 30) && s <= (beta + 30)) ))
+ (ply > Sdepth && (s >= (alpha - 30) && s <= (beta + 30)) )))
{
/* score the position */
--
--| Ralf Stephan, Augsburg, Bavaria, Germany |-------| ralf@ark.abg.sub.org |-
--| GO d* -p+ c++ l++ m* s--/+ g++ w++ t r+ |-------| ..and she was black. |-
Technical Details
Message-ID:
<1993Jun29.092506.5020@ark.abg.sub.org>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!rz.uni-karlsruhe.de!news.uni-stuttgart.de!delos!mubo!ark!ralfShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d71d,173e9a554fd6d2e8,start X-Google-Attributes: gid10d71d,public X-Google-ArrivalTime: 1993-06-29 22:26:32 PST Newsgroups: gnu.chess Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!rz.uni-karlsruhe.de!news.uni-stuttgart.de!delos!mubo!ark!ralf From: ralf@ark.abg.sub.org (Ralf Stephan) Subject: Important patch to pl62 Organization: Not Very Ltd. Date: Tue, 29 Jun 1993 09:25:06 GMT X-Newsreader: TIN [version 1.2 PL0] Message-ID: <1993Jun29.092506.5020@ark.abg.sub.org> Lines: 33