Author: Russell Reagan
Date: 10:58:25 01/15/03
Go up one level in this thread
On January 15, 2003 at 07:49:44, Bas Hamstra wrote: >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. Hi Bas, How would you use x^(x-2) trick to generate "up" attacks and attacks in other directions? Russell
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.