Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: piece list possibilities

Author: Pat King

Date: 19:05:33 07/07/98

Go up one level in this thread



On July 07, 1998 at 21:32:42, Tom Kerrigan wrote:

>Yes, the arrays you describe are mandatory if you don't want to spend most of
>your CPU time looping through the board. :)

My solution was NOT to store the board, but have the pieces remember where they
were

pieces = (WP1,WP2,WP3...,WR1,WR2,....BK)

squares =(captured,a1,a2,a3...e8)

Position = array[WP1..BK] of squares, plus some flags

(yes, ok, you got me, I'm working in Pascal)

BUT my loops are all 32 or 16, not 64, and my move generation and evaluation
functions are a lot more straightforward than in my earlier programs using the
typical array of squares.

Pat



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.