Resolve warnings.

This commit is contained in:
hal8174 2024-02-18 20:49:38 +01:00
parent 2bf648f657
commit 5575cb134a
6 changed files with 103 additions and 143 deletions

View file

@ -42,19 +42,20 @@ fn main() {
let mut b = args.problem.get_problem();
println!("{b}");
b.print();
match args.mode {
Mode::Solutions => {
while b.next_finish_state() {
println!("{}\n{}\n{}\n{}", b.count(), b.solution_count(), b.cost(), b);
println!("{}\n{}\n{}", b.count(), b.solution_count(), b.cost());
b.print();
}
println!("Solutions: {}\nStates: {}", b.solution_count(), b.count());
}
Mode::Step => {
while b.next_state() {
println!("{}", b);
b.print();
let mut s = String::new();
let _ = io::stdin().read_line(&mut s);
}