Author: Tim Foden
Date: 03:21:41 07/30/00
Go up one level in this thread
On July 30, 2000 at 01:41:08, Larry Griffiths wrote: >I am working on the last part of my piece Generation/Move code which is Pawn >promotion. > >My old program only promoted to Queens. I want to make this verison promote >pawns to Knights, Bishops, Rooks or Queens. > >How many of you have this type of code in your programs? > >I think I have found a way to do it, but am open to any suggestions on how to do >it. :) 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.
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.