Coding Dojo

Edit on Gitlab

Mars Rover

You’re part of the team that make Mars Rover. Develop the simulator programm that take commands and map, they translates the commands and show the result position and direction of the Rover.

Requirements

Your program take in input

When the rover encounters an obstacle it do nothing.

The map could be describe by a string like :

🟩🟩🌳🟩🟩
🟩🟩🟩🟩🟩
🟩🟩🟩🌳🟩
🟩🌳🟩🟩🟩
➡️🟩🟩🟩🟩

or

̀̀ 🟫🟫🪨🟫🟫 🟫🟫🟫🟫🟫 🟫🟫🟫🟫🟫 🟫🟫🟫🟫🟫 ⬆️🟫🟫🟫🟫 ̀̀