Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: inCheck moveGen

Author: Dann Corbit

Date: 15:13:51 12/06/03

Go up one level in this thread


On December 06, 2003 at 02:01:13, Matthias Gemuh wrote:

>On December 05, 2003 at 20:06:57, Dann Corbit wrote:
>
>>>>
>>>>Incheck(white) is just kingbitmap[white] & blackattacks
>>>>Incheck(black) is just kingbitmap[black] & whiteattacks
>>>>
>>>>It's also useful for other things like move ordering.
>>>
>>>
>>>
>>>That is how I do it in BigLion.
>>>I calculate these attack boards from scratch at each interior or leaf node.
>>>Do you do it better ?
>>
>>You can do it incrementally.  It's a lot trickier to get it right though.
>
>
>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.



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.