Author: Gerd Isenberg
Date: 06:58:05 09/27/04
Go up one level in this thread
On September 27, 2004 at 03:42:40, Tony Werten wrote: >On September 27, 2004 at 02:55:42, Tony Werten wrote: > <snip> >>>>3) the ray-tracing method is probably slower, but one of the benefits is that >>>>you can continue ray-tracing once you hit an occupied square, so you can get >>>>pins or x-ray-attacks. i don't see how to get such attacks easily in rotated >>>>bitboard or kogge-stone formalism. am i missing something? >>> >>> >>>With KoggeStone it's easy. Something like this, depending upon how you have >>>written your routines. >>> >>>attacks = GenerateUpwardAttacks(rooks | queens, empty_squares); >>>xray_attacks = GenerateUpwardAttacks(attacks, empty_squares) & ~attacks; >> >>or >> >>attacks=GenerateRookAttacks(rooks|queens,empty) >>xray=GenerateRookAttacks(rooks|queens,empty & !attacks) > >sorry, ~ not ! :) > >Tony > >> >>to get them from all directions at the same time. >> >>Tony Hmm, i don't get that at all ;-(
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.