Article View: gnu.chess
Article #6204gnuchess 3.0 question
From: Brian Wong
Date: Fri, 27 Apr 1990 06:28
Date: Fri, 27 Apr 1990 06:28
38 lines
1313 bytes
1313 bytes
Hi, I have the following question about GNUCHESS 3.0: Near the end of MakeMove (gnuchess.c): > if (node->flags & epmask) > EnPassant(xside, f, t, 1); > else > >#if ttblsz > if (hashflag) > UpdateHashbd(side, board[t], f, t); >#endif > > Mvboard[f]++; Do you think it should be: > if (node->flags & epmask) > EnPassant(xside, f, t, 1); > else > >#if ttblsz > if (hashflag) > UpdateHashbd(side, board[t], f, t); >#else > ; /* for the 'else' above if ttblsz == 0 */ >#endif > > Mvboard[f]++; This change ensures that Mvboard[f] gets updated irrespective of the value of ttblsz. The same change should be applied to a similar piece of code near the end of UnMakeMove. Brian
Technical Details
Message-ID:
<1990Apr27.062800.15886@cs.UAlberta.CA>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!van-bc!ubc-cs!alberta!wongShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d71d,1791f74ff16bddee,start X-Google-Attributes: gid10d71d,public X-Google-ArrivalTime: 1990-04-26 23:28:00 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!van-bc!ubc-cs!alberta!wong From: wong@cs.UAlberta.CA (Brian Wong) Newsgroups: gnu.chess Subject: gnuchess 3.0 question Keywords: MakeMove, UnMakeMove Message-ID: <1990Apr27.062800.15886@cs.UAlberta.CA> Date: 27 Apr 90 06:28:00 GMT Organization: University of Alberta, Edmonton, Alberta, Canada Lines: 38 Posted: Fri Apr 27 07:28:00 1990