Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: inCheck moveGen

Author: Matthias Gemuh

Date: 15:43:19 12/06/03

Go up one level in this thread


>>
>>I now calculate only AttacksFrom[64] and their sum.
>>To do things incrementally, I need also AttacksTo[64]. Right ?
>
>I think maybe that is better than what I do.
>
>Essentially, it is this:
>1.  Pick up the piece and remove all of its influence from the board.
>2.  Put the piece down on the target square and recalculate its influence.
>
>Sliders cause me a problem.  If there is an enemy slider attack (on either the
>source or the target square) and I am not on an edge of the board, I have to
>recalculate a lot more.  I think maybe your idea is a lot better.



I once did it the way you do and ended up slower than calculating from scratch.
However, I was copying the 64 AttackFroms before updating only the copy :(.
I like a slution which preserves the old attack information.

/Matthias.




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.