2024-01-24 08:34:23 -08:00
|
|
|
// Eryn Wells <eryn@erynwells.me>
|
2024-01-24 08:35:22 -08:00
|
|
|
|
2025-05-23 18:38:15 -07:00
|
|
|
pub mod bit_scanner;
|
|
|
|
|
2024-01-24 08:35:22 -08:00
|
|
|
mod bitboard;
|
2025-05-02 14:26:09 -07:00
|
|
|
mod direction;
|
2024-01-24 08:35:22 -08:00
|
|
|
mod library;
|
|
|
|
mod shifts;
|
|
|
|
|
2024-07-13 07:04:49 -07:00
|
|
|
pub use bitboard::BitBoard;
|
2025-05-02 14:26:09 -07:00
|
|
|
pub use direction::IterationDirection;
|
2024-01-24 08:35:22 -08:00
|
|
|
|
|
|
|
#[macro_export]
|
|
|
|
macro_rules! bitboard {
|
2024-07-13 07:04:49 -07:00
|
|
|
($($sq:ident)* $(,)?) => {
|
|
|
|
{
|
|
|
|
let mut bitboard = $crate::BitBoard::empty();
|
|
|
|
$(bitboard.set(chessfriend_core::Square::$sq);)*
|
|
|
|
bitboard
|
|
|
|
}
|
2024-01-24 08:35:22 -08:00
|
|
|
};
|
|
|
|
}
|