Computer Chess Club Archives




Subject: BitBoards

Author: Frank Phillips

Date: 04:55:46 05/29/99

What is the best way to extract the squares pieces are on from a piece-bitboard?
 For example, if whiteKnights is the bitboard representing where white knights
are, how do you find the square the knights are on.  Looping through the 64 bits
with a mask for each possible square on the board seems slow, even if you can
break out once the bitboard is empty.

This page took 0.03 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.