This commit is contained in:
2025-02-18 15:08:35 -05:00
parent 22bc4876e5
commit 1972707f88
3 changed files with 16 additions and 0 deletions

View File

@@ -11,6 +11,12 @@ type BBBaseType = u64;
#[derive(Copy, Clone, PartialEq, Eq)]
pub struct BitBoard(BitArr!(for BOARD_AREA, in BBBaseType, Lsb0));
impl Default for BitBoard {
fn default() -> Self {
Self::new()
}
}
impl BitBoard {
pub const fn new() -> Self {
Self(bitarr!(BBBaseType, Lsb0; 0; BOARD_AREA))