[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:
Eryn Wells 2025-06-02 15:46:10 -07:00
parent 6d0df32f74
commit 09fbe1be22
3 changed files with 3 additions and 3 deletions

View file

@ -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,