Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Square array and piece arrays

Author: Sune Fischer

Date: 11:53:42 01/26/02

Go up one level in this thread


On January 26, 2002 at 14:38:06, Russell Reagan wrote:

>>When I did the last thing my movegen doubled its speed, avoid stupid check as
>>much as you can, better to design the structures so it can be avoided.
>
>What do you mean by "stupid check"? Do you mean a check as in "an enemy piece
>attacking the king", or do you mean checking variables in your program, such as
>"if" statements?
>
>Russell

I mean don't loop through the board to find pieces, create structures so you can
look them up cheaply :)

-S.



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.