Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: sliding attacks in three inlines

Author: Sune Fischer

Date: 14:47:40 04/15/04

Go up one level in this thread


On April 15, 2004 at 15:40:30, Gerd Isenberg wrote:

>>But since the relation between bb and 0x88 is:
>>0x88 = bb shl 1-(bb and 7), you can also use it for bb.
>>
>>Tony
>
>Nice trick to save the additional and of the rank ;-)

Same trick, only on the upper 3 bits:
0x88 = bb + (bb & ~7)

-S.

>Cheers,
>Gerd



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.