Computer Chess Club Archives


Search

Terms

Messages

Subject: Wait, I see it.

Author: Bas Hamstra

Date: 04:49:44 01/15/03

Go up one level in this thread


In think I understand now. You do it for the 2 rooks simulteneously. "Floodfill"
(not the correct term, I know) does not necessarily have to start at bit 0, it
can be anywhere. Wow. This really is an enhancement of the X ^ (X-2) trick. This
opens interesting possibilities, like generating "UP" attacks for all rooks and
queens at once, and masking only later (when it's needed) with a RookMask[Sq].

RookAttacks for one rook at a given square = RookMask[Sq] & UP & LEFT;

(plus the same for the reversed bitboard)

Bas.















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.