Skip to content

AdamJKing/mars-rover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

This app only covers Part 1 of the brief in order to keep within the requested time limit. You can run the tests using sbt clean test to verify the behaviour for basic movement.

Brief

The next Mars Rover is being developed, and we need you to come up with a simple way of issuing navigation instructions to it from back on Earth! We would like you to model the following.

Part 1: Basic Movement

  1. The Mars Rover operates on a grid of arbitrary size.
  2. You can only issue three commands: Move forward, rotate clockwise, and rotate anticlockwise.
  3. If the rover moves off the grid, it reappears on the opposite side of the grid.

Part 2: Autopilot

  1. Devise a simple process for determining the shortest possible path from one position on the grid to another.
  2. Improve the solution so that it can avoid mountain ranges that occupy a number of inconvenient grid squares scattered around the map.

Part 3: Putting it all together

Output all the instructions and moves carried out by the rover to get from one grid square to another. The output can take any form e.g rows of text, JSON data, or something graphical.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages