chessfriend/bitboard/src/lib.rs
Eryn Wells c02f0170b9 [bitboard] Export the bit_scanner module
Clients can access TrailingBitScanner and LeadingBitScanner directly now.
2025-05-23 18:38:15 -07:00

22 lines
420 B
Rust

// Eryn Wells <eryn@erynwells.me>
pub mod bit_scanner;
mod bitboard;
mod direction;
mod library;
mod shifts;
pub use bitboard::BitBoard;
pub use direction::IterationDirection;
#[macro_export]
macro_rules! bitboard {
($($sq:ident)* $(,)?) => {
{
let mut bitboard = $crate::BitBoard::empty();
$(bitboard.set(chessfriend_core::Square::$sq);)*
bitboard
}
};
}