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