fixed marlinformat pieces
This commit is contained in:
1 parent
15a8e1c134
commit
d703ea6010
3 files changed
+4
-4
No files matched your search
+2
-2
@@ -147,10 +147,10 @@ Move parseMove(Board &board, std::string_view str) {
|
||||
return Move(from, to, flag);
|
||||
}
|
||||
|
||||
std::array<uint8_t, 32> CompressPieces(Board &board) {
|
||||
std::array<uint8_t, 16> CompressPieces(Board &board) {
|
||||
const uint8_t UNMOVED_ROOK = 0x10; // Special value for unmoved rooks
|
||||
|
||||
std::array<uint8_t, 32> compressed;
|
||||
std::array<uint8_t, 16> compressed;
|
||||
|
||||
for (int square = a1; square <= h8; square++) {
|
||||
int pieceCode = 0;
|
||||
|
||||
Reference in new issue
Block a user