Author: Larry Griffiths
Date: 07:07:42 07/30/00
Go up one level in this thread
On July 30, 2000 at 06:21:41, Tim Foden wrote: > >In GLC I do it the way I think a lot of programs do... Whenever a pawn promotion >is generated, GLC simply generates all 4 alternative moves. Of course, this >means that your 'move' data type has to be able to record the promotion piece. Thanks Tim, This is what I had in mind. I created a Piece-Pool Object to manage all the pieces so that the pawn promotion can obtain an instance of a piece from the pool instead of using the new and delete each time. Those constructors and destructors are nasty consumers of CPU time. Larry.
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.