1.0.4 • Published 3 years ago

mars-rover-cli v1.0.4

Weekly downloads
28
License
ISC
Repository
github
Last release
3 years ago

A CLI for landing and operating a Mars Rover in a predefined grid


How to use

npx mars-rover-cli [file path] or

npm i -g mars-rover-cli
mars-rover-cli [file path]    

Expected file

Plateau:Grid size (ex: 5 5)
Rover1 Landing:X Y FacingDirection (ex: 1 2 N)
Rover1 Instructions:(ex: RLMLMLMLMM)
Rover2 Landing:X Y FacingDirection(ex: 3 3 E)
Rover2 Instructions:(ex: MMRMMRMRRM)

Caveat

The current version does not have collision detection. So if a rover were to go through a grid point that a rover is on, it would currently not be able to detech that.

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.0.1

3 years ago