Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Is rotating bb's only useful for movegeneration?

Author: Robert Hyatt

Date: 12:35:16 12/06/99

Go up one level in this thread


On December 06, 1999 at 11:29:56, Bas Hamstra wrote:

>Hi Bob and other bb experts,
>
>What do you use the rotated bb's for, exactly: only for movegeneration, or also
>for attack detection?
>
>I ask this because I saw in Crafty some code to detect blocking of sliding
>attacks, like I do it. Whith a BlockMask[File][Rank]. I thought the essence of
>the rotated bb's is that you can avoid this block checking, so why this
>block-code in Crafty?
>
>
>
>Regards,
>Bas Hamstra.


Move generation is one place.  But _anywhere_ you need to enumerate attacks
for sliding pieces (ie in Swap() [the SEE evaluator]), to ask the question "are
these two rooks (or rook and queen) connected on the 7th rank?"  Does this rook
support this passed pawn from the rear or is something blocking it?

Etc...



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.