Please see detailed description here
- Language:
node.js
- Tests:
jest
Assume you have node 10+
and proper npm
installed.
###How to run You can land rovers from both command line or from file.
Single rover from command line:
$ git clone git@github.com:probably-kira/rover.git
$ cd rover
$ npm i
$ npm link
$ myapp -l 1 2 N -p 5 5 -n MyNewRover -i LMLMLMLMM
or, if you don't want link it, use
$ git clone git@github.com:probably-kira/rover.git
$ cd rover
$ npx ./src/index.js -l 1 2 N -p 5 5 -n MyNewRover -i LMLMLMLMM
NB: it could work without npm link
if app would be published to npm registry,
but I don't want to pollute npm with test apps
Multiple rovers from file:
$ myapp -f path/to/myfile.txt
Command | Description |
---|---|
-l | rover landing. Must be an array from 3 items |
-p | plateau max dimensions, array of 2 |
-n | rover name[optional] |
-i | instructions for rover, string |
-f | file with instructions(example is in /test/files/input.txt) |
to run test, please use
$ npx jest