storing castling rights cheaper
This commit is contained in:
1 parent
6e8f7e3d86
commit
70bea0713c
5 files changed
+44
-37
No files matched your search
+8
-1
@@ -20,6 +20,13 @@ enum PIECE {
|
||||
King
|
||||
};
|
||||
|
||||
enum CASTLING_RIGHTS {
|
||||
whiteKingRight = 1,
|
||||
whiteQueenRight = 2,
|
||||
blackKingRight = 4,
|
||||
blackQueenRight = 8
|
||||
};
|
||||
|
||||
constexpr std::array<const char, 12> PIECE_LETTERS = {
|
||||
'P', 'p',
|
||||
'N', 'n',
|
||||
@@ -87,4 +94,4 @@ enum DIRECTION {
|
||||
noEa = north + east,
|
||||
soWe = south + west,
|
||||
soEa = south + east
|
||||
};
|
||||
};
|
||||
Reference in new issue
Block a user