Bug fixes

This commit is contained in:
hal8174 2024-08-27 13:53:31 +02:00
parent be1d26ebd0
commit a11b39cf9f
8 changed files with 336 additions and 70 deletions

View file

@ -62,6 +62,17 @@ impl PathField {
},
}
}
pub fn cost(&self) -> usize {
match self {
PathField::Belt { pos: _, dir: _ } => 300,
PathField::Underground {
pos: _,
dir: _,
len: _,
} => 1750,
}
}
}
pub fn print_map<F>(width: i32, height: i32, f: F) -> io::Result<()>