From af421a9452e74232a3f5bb3b2fe891a5f94411ce Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sun, 31 Mar 2024 12:09:16 +0100 Subject: [PATCH] Tighten item visibilities --- src/movegen/mod.rs | 4 ++-- src/movegen/wizardry/mod.rs | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/movegen/mod.rs b/src/movegen/mod.rs index 8b5be56..f9ce658 100644 --- a/src/movegen/mod.rs +++ b/src/movegen/mod.rs @@ -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; diff --git a/src/movegen/wizardry/mod.rs b/src/movegen/wizardry/mod.rs index 6ee6bd0..6ed82d7 100644 --- a/src/movegen/wizardry/mod.rs +++ b/src/movegen/wizardry/mod.rs @@ -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 {