[board] Make Board::pieces private
Do not allow direct access to the internal piece set. Update call sites to use Board API instead.
This commit is contained in:
parent
6d0df32f74
commit
09fbe1be22
3 changed files with 3 additions and 3 deletions
|
@ -15,7 +15,7 @@ pub type FullMoveClock = u32;
|
|||
#[derive(Clone, Debug, Default, Eq, PartialEq)]
|
||||
pub struct Board {
|
||||
pub active_color: Color,
|
||||
pub pieces: PieceSet,
|
||||
pieces: PieceSet,
|
||||
pub castling_rights: castle::Rights,
|
||||
pub en_passant_target: Option<Square>,
|
||||
pub half_move_clock: HalfMoveClock,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue