Tighten item visibilities
This commit is contained in:
parent
3b1735da79
commit
af421a9452
|
@ -1,8 +1,8 @@
|
|||
// Naive move generation
|
||||
pub mod naive;
|
||||
mod naive;
|
||||
|
||||
// Magic bitboard generation
|
||||
pub(crate) mod wizardry;
|
||||
mod wizardry;
|
||||
|
||||
// Magic bitboard definitions
|
||||
mod moves;
|
||||
|
|
|
@ -1,20 +1,20 @@
|
|||
mod generation;
|
||||
pub(crate) use generation::*;
|
||||
pub(super) use generation::*;
|
||||
mod mask;
|
||||
|
||||
use crate::board::{Bitboard, Square};
|
||||
|
||||
/// A type representing the magic board indexing a given [crate::board::Square].
|
||||
#[derive(Clone, Debug)]
|
||||
pub(crate) struct Magic {
|
||||
pub(super) struct Magic {
|
||||
/// Magic number.
|
||||
pub(crate) magic: u64,
|
||||
pub(self) magic: u64,
|
||||
/// Base offset into the magic square table.
|
||||
pub(crate) offset: usize,
|
||||
pub(self) offset: usize,
|
||||
/// Mask to apply to the blocker board before applying the magic.
|
||||
pub(crate) mask: Bitboard,
|
||||
pub(self) mask: Bitboard,
|
||||
/// Length of the resulting mask after applying the magic.
|
||||
pub(crate) shift: u8,
|
||||
pub(self) shift: u8,
|
||||
}
|
||||
|
||||
impl Magic {
|
||||
|
|
Loading…
Reference in a new issue