storing castling rights cheaper
This commit is contained in:
1 parent
6e8f7e3d86
commit
70bea0713c
5 files changed
+44
-37
No files matched your search
+1
-1
@@ -23,7 +23,7 @@ public:
|
||||
int halfMoves = 0;
|
||||
int fullMoves = 0;
|
||||
|
||||
std::array<bool, 4> castlingRights = { false, false, false, false };
|
||||
uint8_t castlingRights = 0;
|
||||
int enPassantTarget;
|
||||
|
||||
void Init();
|
||||
|
||||
Reference in new issue
Block a user