[board] Replace the length of the Builder::kings array with Color::NUM instead of constant 2
This commit is contained in:
parent
46b19ff616
commit
9f2bfc0457
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ pub struct Builder {
|
|||
player_to_move: Color,
|
||||
flags: Flags,
|
||||
pieces: Mailbox,
|
||||
kings: [Option<Square>; 2],
|
||||
kings: [Option<Square>; Color::NUM],
|
||||
en_passant: Option<EnPassant>,
|
||||
ply_counter: u16,
|
||||
move_number: u16,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue