added print of orthonormal
This commit is contained in:
parent
c0f0a92a76
commit
58a0e5a1a7
@ -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>> {
|
||||
|
Loading…
Reference in New Issue
Block a user