From 604837f74c78a58cc715c087c2ec6ef0299ddc71 Mon Sep 17 00:00:00 2001 From: WanderingPenwing Date: Tue, 3 Dec 2024 17:51:28 +0100 Subject: [PATCH] fixed ask error --- src/main.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/main.rs b/src/main.rs index c7fb28d..eb33c6e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -280,13 +280,6 @@ impl Sudoku { } fn remove_allowed(&mut self, row_index: usize, column_index: usize, blocking_cells: &Vec) -> Result<(), WaveError> { - if let Some(state) = self.grid[row_index][column_index].get_state() { - for blocking_cell in blocking_cells { - if blocking_cell.state == state { - return Err(WaveError::Contradiction) - } - } - } match self.grid[row_index][column_index].remove_allowed(blocking_cells) { Ok(result) => { let cell::RemoveResult::Collapsed(state) = result else { @@ -407,7 +400,6 @@ impl Sudoku { } } println!(); - if self.debug_display { println!("--------"); }