added print of orthonormal

This commit is contained in:
EliasCubz 2020-11-01 15:55:06 +01:00
parent c0f0a92a76
commit 58a0e5a1a7
1 changed files with 6 additions and 3 deletions

View File

@ -204,8 +204,7 @@ fn display_grid(
h: &HashMap<robot::Position, u32>,
) {
for i in (0..w.y).rev() {
print!(" ");
print!("{} ", i);
for j in 0..w.x {
print!("{} ", i);
match h.get(Position{ x: j, y: i }) {
@ -217,8 +216,12 @@ fn display_grid(
None => print!("."),
},
}
println!()
}
println!();
}
print!(" ");
for j in (0..w.x){
print!("{} ", j);
}
}
fn main() -> Result<(), Box<dyn std::error::Error>> {