Computer Chess Club Archives


Search

Terms

Messages

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, 07 Jul 11 08:48:38 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.