This commit is contained in:
2025-03-13 13:28:32 -04:00
parent efd956d614
commit 8445a750c9
2 changed files with 3 additions and 3 deletions

View File

@@ -101,11 +101,11 @@ impl BitBoard {
}
pub const fn bitor_assign(&mut self, other: Self) {
self.0 = self.0 | other.0;
self.0 |= other.0;
}
pub const fn bitand_assign(&mut self, other: Self) {
self.0 = self.0 & other.0;
self.0 &= other.0;
}
pub const fn not(self) -> Self {

View File

@@ -231,7 +231,7 @@ impl Board {
}
let mut self_copy = *self;
if let Ok(_) = self_copy.place(coord, piece) {
if self_copy.place(coord, piece).is_ok() {
Some(self_copy)
} else {
None