[board] Remove Board::new()
This commit is contained in:
parent
bb8d5a6aa3
commit
b0c4039920
1 changed files with 0 additions and 18 deletions
|
@ -50,24 +50,6 @@ impl Board {
|
|||
}
|
||||
}
|
||||
|
||||
pub(crate) fn new(
|
||||
player_to_move: Color,
|
||||
flags: Flags,
|
||||
pieces: PieceSet,
|
||||
en_passant: Option<EnPassant>,
|
||||
half_move_counter: u16,
|
||||
full_move_number: u16,
|
||||
) -> Self {
|
||||
Self {
|
||||
player_to_move,
|
||||
flags,
|
||||
pieces,
|
||||
en_passant,
|
||||
half_move_counter,
|
||||
full_move_number,
|
||||
}
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn player_to_move(&self) -> Color {
|
||||
self.move_counter.active_color
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue