Bug fixes
This commit is contained in:
parent
be1d26ebd0
commit
a11b39cf9f
8 changed files with 336 additions and 70 deletions
|
|
@ -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<()>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue