22 lines
420 B
Rust
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
|
|
}
|
|
};
|
|
}
|