fixed marlinformat pieces

This commit is contained in:
rektdie committed 2025-03-31 03:22:32 +02:00
1 parent 15a8e1c134
commit d703ea6010
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@ constexpr int RAND_MOVES = 8;
struct MarlinFormat {
uint64_t occupancy; // 8 bytes: Bitboard representing all occupied squares (includes all pieces)
std::array<uint8_t, 32> pieces; // 32 bytes: 64 squares stored in 4-bit format (2 squares per byte)
std::array<uint8_t, 16> pieces; // 16 bytes: 64 squares stored in 4-bit format (2 squares per byte)
uint8_t stmEPSquare; // 1 byte: STM (side to move) in bit 7, EP square in bits 0-5
uint8_t halfmoveClock; // 1 byte: Halfmove counter for the 50-move rule (incremented after each move)
uint16_t fullmoveNumber; // 2 bytes: Full move counter, starting at 1 (increments after Black's move)