Merge branch 'master' into pest-rand-instr
This commit is contained in:
commit
401ff2cb54
@ -199,7 +199,11 @@ fn display_grid(
|
||||
h: &HashMap<robot::Position, u32>,
|
||||
) {
|
||||
for i in (0..w.y).rev() {
|
||||
if i < 10 {
|
||||
print!("{} ", i);
|
||||
} else {
|
||||
print!("{} ", i);
|
||||
}
|
||||
for j in 0..w.x {
|
||||
match h.get(&robot::Position { x: j, y: i }) {
|
||||
Some(id) => match robot_pool[(id - 1) as usize].o {
|
||||
@ -216,7 +220,11 @@ fn display_grid(
|
||||
}
|
||||
print!(" ");
|
||||
for j in 0..w.x {
|
||||
if j < 10 {
|
||||
print!("{} ", j);
|
||||
} else {
|
||||
print!("{} ", j);
|
||||
}
|
||||
}
|
||||
println!();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user