Thread View: gnu.chess
1 messages
1 total messages
Started by Brian Wong
Fri, 27 Apr 1990 06:28
gnuchess 3.0 question
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads