diff --git a/engine/src/bitboard/board.rs b/engine/src/bitboard/board.rs index e69de29..b742d5c 100644 --- a/engine/src/bitboard/board.rs +++ b/engine/src/bitboard/board.rs @@ -0,0 +1,10 @@ +pub struct Board { + bitboards: [u64; 12], // 0-5 -> white pieces (P, N, B, R, Q, K), 6-11 -> black pieces (p, n, b, r, q, k) + piece_board: [u8; 64], // same as board indexes, 12 -> empty square + occupancy: [u64; 3], // 0 -> white, 1 -> black, 2 -> combined + castling_rights: u8, // 0b0000_KQkq + pinned_squares: [u8; 64], // 0 -> E-W, 1 -> NE-SW, 2 -> N-S, 3 -> SE-NW, 4 -> no pin + pin_mask: u64, // 1 -> pin, 0 -> no pin + en_passant_square: u64, // 1 -> ep square, 0 -> no ep square + side_to_move: u8, // 0 -> white to play, 1 -> black to play +} \ No newline at end of file