some changes

This commit is contained in:
2025-02-13 22:33:37 -05:00
parent 81c08f5407
commit dafe585f0c
6 changed files with 201 additions and 44 deletions

View File

@@ -25,8 +25,7 @@ impl BitBoard {
}
pub fn set(&mut self, row: usize, col: usize, value: bool) {
let index = Self::get_index(row, col);
self.0.set(index, value);
self.0.set(Self::get_index(row, col), value);
}
pub fn count(&self) -> usize {