Author: Dieter Buerssner
Date: 05:23:44 01/13/03
Go up one level in this thread
On January 12, 2003 at 17:14:18, Bas Hamstra wrote:
> for(n=0; n<Count; n++)
> { From=PieceList[ByColor][n];
> Type=Bord[From]>>1;
> if(Type==PAWN) break;
This assumes, that your piece list is sorted, with pawns at the end - right?
This sounds a bit costy (in Makemove/Unmakemove?) If there are no other time
critical places in the code, that use this info, I would try to get rid of it.
Dieter
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.