Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: To Sune: BSR/BSF sliding attacks explained better (I hope!)

Author: Wylie Garvin

Date: 01:58:48 02/03/02

Go up one level in this thread


OOPS...

   I left out an important point :)

   Before calling those functions, you have to OR the edges of the board into
the allPieces bitboard, i.e. 0xFF818181818181FF.  Otherwise, you might get an
empty bitboard when you AND together allPieces with a rayMask, and then the
result of HiBit/LoBit would be undefined.  This step combined with the fact that
"empty" ray masks have the source bit set, guarantees the bitboard is never
empty.

wylie



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.