[board] Replace the length of the Builder::kings array with Color::NUM instead of constant 2

This commit is contained in:
Eryn Wells 2025-05-02 14:49:16 -07:00
parent 46b19ff616
commit 9f2bfc0457

View file

@ -8,7 +8,7 @@ pub struct Builder {
player_to_move: Color, player_to_move: Color,
flags: Flags, flags: Flags,
pieces: Mailbox, pieces: Mailbox,
kings: [Option<Square>; 2], kings: [Option<Square>; Color::NUM],
en_passant: Option<EnPassant>, en_passant: Option<EnPassant>,
ply_counter: u16, ply_counter: u16,
move_number: u16, move_number: u16,