fix arrow type
This commit is contained in:
parent
0f3ea996b0
commit
ea4e5bad6d
@ -17,10 +17,10 @@ impl World {
|
||||
/// Set robot on the map.
|
||||
fn set_robot(&mut self, r: Robot) {
|
||||
self.map[(r.p.x * r.p.y) as usize] = match r.o {
|
||||
Orientation::N => '⬆',
|
||||
Orientation::S => '⬇',
|
||||
Orientation::E => '➡',
|
||||
Orientation::W => '⬅',
|
||||
Orientation::N => '↑',
|
||||
Orientation::S => '↓',
|
||||
Orientation::E => '→',
|
||||
Orientation::W => '←',
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user