-
|
Do I need to check IsWhiteToMove every time Think is called to determine my color? Or maybe it doesn't matter? Except that, to use the bitboards, I need to differentiate between my pieces and the opponent's pieces. Shouldn't the bitboards be "mine" and "opponents" instead of "black and white"? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Every game is different, i.e. you'll be black one game and could be white the next. So far, checking |
Beta Was this translation helpful? Give feedback.
Every game is different, i.e. you'll be black one game and could be white the next. So far, checking
board.IsWhiteToMovewas the best way I could find to determine the colour; it'll obviously be the same value throughout the game.