The usual way of representing a chess board using bit boards:
Code: Select all
WhitePawns
BlackPawns
WhiteRooks
BlackRooks
WhiteKnights
BlackKnights
WhiteBishops
BlackBishops
WhiteQueen
BlackQueen
WhiteKing
BlackKing
Code: Select all
Pawns
Rooks
Knights
Bishops
Queens
Kings
WhitePieces
BlackPieces
Obviously fx. BlackPawns = Pawns & BlackPieces
I've been trying to investigate any significant drawbacks, but without any luck. Apparently no one have ever thought about the second approach before or the drawbacks should be so obvious that there's no need to mention them.
Well, I don't see any significant drawbacks.
Should any of you have enlightening comments on this, it'll be very much appreciated.
Best Regards.