Skip to content

Commit

Permalink
fix: do not output when no flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Valdes committed Dec 4, 2024
1 parent 2f39f77 commit 34b67d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,11 @@ impl Grid {

fn solve(grid: &mut Grid, output_grids: bool) -> Vec<u8> {
grid.print_stats();
println!("Initial grid:\n{}", grid.data);
if(output_grids) {
println!("Initial grid:\n{}", grid.data);
}

if grid.is_complete() {
println!("Grid already complete");
return Vec::new();
}

Expand Down

0 comments on commit 34b67d8

Please sign in to comment.