update readme

This commit is contained in:
cool-mist
2026-01-22 18:27:32 +05:30
parent 0c88bfa24b
commit 0bd216893e
2 changed files with 27 additions and 31 deletions
+6 -5
View File
@@ -13,8 +13,9 @@ fn main() {
return;
};
puzzle.board.pretty_print();
if args.print {
print_solutions(puzzle);
print_solutions(&puzzle);
}
return;
@@ -34,12 +35,12 @@ fn main() {
};
let puzzle = board.solve();
print_solutions(puzzle);
puzzle.board.pretty_print();
print_solutions(&puzzle);
}
fn print_solutions(puzzle: Puzzle) {
puzzle.board.pretty_print();
let solutions = puzzle.solutions;
fn print_solutions(puzzle: &Puzzle) {
let solutions = &puzzle.solutions;
if solutions.len() == 0 {
println!("No solutions found");
return;