theoretical end: Breakthrough
This commit is contained in:
1 parent
651c4713c2
commit
bda716da90
3 files changed
+77
-4
No files matched your search
@@ -12,6 +12,9 @@ pub struct Board<const N: usize> {
|
||||
}
|
||||
|
||||
impl<const N: usize> Board<N> {
|
||||
pub const fn from_layers(layers: [[u64; 2]; N]) -> Self {
|
||||
Self { layers }
|
||||
}
|
||||
pub fn apply_patch(&mut self, patch: &MaskPatch) {
|
||||
for layer in self.layers.iter_mut() {
|
||||
layer[0] &= !patch.clear_mask;
|
||||
|
||||
Reference in new issue
Block a user