implemented method add_checker for CheckInfo in bitboard::checkinfo.rs

This commit is contained in:
Varga Dávid Lajos
2025-11-15 12:40:52 +01:00
parent ad530e9155
commit f9a302c9a0

View File

@@ -12,4 +12,10 @@ impl CheckInfo {
move_mask: 0xFFFF_FFFF_FFFF_FFFF
}
}
#[inline(always)]
pub fn add_checker(&mut self, move_mask: u64) {
self.move_mask &= move_mask;
self.check_count += 1;
}
}