Make 'Magic' fields 'pub(crate)'

This commit is contained in:
Bruno BELANYI 2022-07-22 18:41:09 +02:00
parent 1951db0720
commit 5ef3737b98

View file

@ -3,13 +3,13 @@ use crate::board::Bitboard;
/// A type representing the magic board indexing a given [crate::board::Square]. /// A type representing the magic board indexing a given [crate::board::Square].
pub struct Magic { pub struct Magic {
/// Magic number. /// Magic number.
magic: u64, pub(crate) magic: u64,
/// Base offset into the magic square table. /// Base offset into the magic square table.
offset: usize, pub(crate) offset: usize,
/// Mask to apply to the blocker board before applying the magic. /// Mask to apply to the blocker board before applying the magic.
mask: Bitboard, pub(crate) mask: Bitboard,
/// Length of the resulting mask after applying the magic. /// Length of the resulting mask after applying the magic.
shift: u8, pub(crate) shift: u8,
} }
impl Magic { impl Magic {