Skip to content

Console application (.NET Framework) which uses user inputs to move a car located in a plateau (coord: x, y, ortientation)

License

Notifications You must be signed in to change notification settings

lorena112233/nasa_Rover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nasa_Rover

Requirements:

  • Visual Studio
  • The application requires .NET.framework 4.7 or higher

About:

Problem - Mars Rover

A squad of robotic rovers are to be landed by NASA on a plateau on Mars.This plateau, which is curiously rectangular, must be navigated by therovers so that their on-board cameras can get a complete view of thesurrounding terrain to send back to Earth.

A rover's position and location are represented by a combination of x and yco-ordinates and a letter representing one ofthe four cardinal compasspoints. The plateau is divided up into a grid to simplify navigation. Anexample position mightbe 0, 0, N, which means the rover is in the bottomleft corner and facing North.

In order to control a rover, NASA sends a simple string of letters. Thepossible letters are 'L', 'R' and 'M'. 'L' and 'R' makesthe rover spin 90degrees left or right respectively, without moving from its current spot.'M' means move forward one grid point and maintain the same heading.

Assume that the square directly North from (x, y) is (x, y+1).

Write a simple application that takes a user’s starting point, and then directional instructions and displays the resulting position to the user.

License:

MIT

About

Console application (.NET Framework) which uses user inputs to move a car located in a plateau (coord: x, y, ortientation)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages