mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-17 15:46:24 +08:00
Introduce enum SquareColor
Square and piece colors are two different things, so use different types to avoid misunderstandings. Suggested by Tord. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -163,7 +163,10 @@ const int RShift[64] = {
|
||||
|
||||
#endif // defined(IS_64BIT)
|
||||
|
||||
const Bitboard SquaresByColorBB[2] = { BlackSquaresBB, WhiteSquaresBB };
|
||||
const Bitboard LightSquaresBB = 0x55AA55AA55AA55AAULL;
|
||||
const Bitboard DarkSquaresBB = 0xAA55AA55AA55AA55ULL;
|
||||
|
||||
const Bitboard SquaresByColorBB[2] = { DarkSquaresBB, LightSquaresBB };
|
||||
|
||||
const Bitboard FileBB[8] = {
|
||||
FileABB, FileBBB, FileCBB, FileDBB, FileEBB, FileFBB, FileGBB, FileHBB
|
||||
|
||||
Reference in New Issue
Block a user