Author: Daniel Karlsson
Date: 15:33:37 02/11/00
Go up one level in this thread
On February 11, 2000 at 13:16:45, Tom Kerrigan wrote: >I think you're doing the same thing, except your color bit is #5 and not #4. Not exactly. I'm using two color bits. One for white and one for black. So if, for example, I want to know if there is a white piece on a certain square all I need to do is 'if (board[i] & WHITE)'. No need to check for an empty square. 00010001 white pawn 00100001 black pawn etc...
This page took 0.01 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.