Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: to rotate or not?

Author: Tom Kerrigan

Date: 14:24:37 04/25/00

Go up one level in this thread


On April 25, 2000 at 17:15:24, Steve Maughan wrote:

>Tom,
>
>>* Non-linked piece lists (I've discovered that linked lists are _bad_!)
>
>Hmmm - interesting.  Please do expand!  Surely you're not looping through all of
>the squares?  Maybe a static array?
>
>Regards,
>
>Steve Maughan

Right, I keep a static list of the pieces on the board.

Linked lists are bad because they make life hard for the processor (for a number
of reasons) and the compiler can't do any clever optimization of them.

-Tom



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.