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.
|
/// Set robot on the map.
|
||||||
fn set_robot(&mut self, r: Robot) {
|
fn set_robot(&mut self, r: Robot) {
|
||||||
self.map[(r.p.x * r.p.y) as usize] = match r.o {
|
self.map[(r.p.x * r.p.y) as usize] = match r.o {
|
||||||
Orientation::N => '⬆',
|
Orientation::N => '↑',
|
||||||
Orientation::S => '⬇',
|
Orientation::S => '↓',
|
||||||
Orientation::E => '➡',
|
Orientation::E => '→',
|
||||||
Orientation::W => '⬅',
|
Orientation::W => '←',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user