Author: Robert Hyatt
Date: 11:24:36 07/08/98
Go up one level in this thread
On July 08, 1998 at 13:52:58, Tom Kerrigan wrote: >I'm starting to think that the best way to do this is as follows: > >int piece_list[2][16]; >int piece_count[2]; >int pawn_list[2][8]; >int pawn_count[2]; > >The two-dimensional arrays wave a red flag at me, but I'm not sure anything can >be done to avoid them... > >Comments? > >Cheers, >Tom again, why multiples? just piece_list[48], and have a board that points into this list for removing pieces when they get captured... This way, you capture pawns and everything the same way...
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.