Add beltfinding timeout and debugging.

This commit is contained in:
hal8174 2024-09-01 01:05:34 +02:00
parent f20a1841c9
commit 79c8b0c710
13 changed files with 278 additions and 53 deletions

View file

@ -48,7 +48,7 @@ fn main() {
match args.mode {
Mode::Solutions => {
while b.next_finish_state() {
while b.next_finish_state(None) {
println!("{}\n{}\n{}", b.count(), b.solution_count(), b.cost());
b.print();
}
@ -64,7 +64,7 @@ fn main() {
println!("Solutions: {}\nStates: {}", b.solution_count(), b.count());
}
Mode::Statistics => {
while b.next_finish_state() {}
while b.next_finish_state(None) {}
println!("Solutions: {}\nStates: {}", b.solution_count(), b.count());
}