An open API service indexing awesome lists of open source software.

https://github.com/vbetsch/mars-rover

πŸͺ Kata from CodingDojo
https://github.com/vbetsch/mars-rover

ci clean-code ddd eslint jest kata prettier tdd typescript

Last synced: about 2 months ago
JSON representation

πŸͺ Kata from CodingDojo

Awesome Lists containing this project

README

          

# Mars Rover

You’re part of the team that make Mars Rover. Develop the simulator program that takes commands and a map, they translate the commands and show the result position and direction of the Rover.

## Requirements

Your program takes in input

* a roverβ€˜s starting point (x, y) and the direction (N, S, E, W) it is facing
* a map describing the location of obstacles
* a list of commands to move and turn the rover (⬆️ : move forward, ➑️ : turn right 90Β°, ⬅️ : turn left 90Β°)

When the rover encounters an obstacle, it does nothing.

The map could be described by a string like :

```
🟩🟩🌳🟩🟩
🟩🟩🟩🟩🟩
🟩🟩🟩🌳🟩
🟩🌳🟩🟩🟩
➑️🟩🟩🟩🟩
```

```
🟫🟫πŸͺ¨πŸŸ«πŸŸ«
🟫🟫🟫🟫🟫
🟫🟫🟫🟫🟫
🟫🟫🟫🟫🟫
β¬†οΈπŸŸ«πŸŸ«πŸŸ«πŸŸ«
```

> Extract from https://codingdojo.org/kata/mars-rover/