Author: Sune Fischer
Date: 17:53:40 08/23/03
Go up one level in this thread
On August 23, 2003 at 20:28:02, Omid David Tabibi wrote: >How do you find out how many pieces of a kind attack a square? E.g., how do you >calculate the number of rooks that attack a square? If you just want the number this is not the fastest, you need to popcount. However, I don't really see what good such a number would be. Their directions and/or squares would be more valuable information I thought, so that was what I went for. The real trick is probably to somehow make due without all this :) > >> >>I'm not really sure it is that great an idea, probably it is better to stick to >>just using bitboards with squares. The index layer is not really needed as far >>as I can tell. > >That is what I thought; if you are using 1 bit per piece, then why not just use >bitboards... Because it's twice the space and takes longer to undo when you copy. -S.
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.