Merge branch 'fix-arrow' into 'master'
fix arrow type See merge request mhart/DancingDroids!22
This commit is contained in:
commit
419d9ce414
@ -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