Martian robots is a simple typescript/nodejs program that solves the Martian robots challenge.
- Git
- Nodejs, v14.15.4 minimum
Clone this repository
git clone
The program expects a filepath as an input with the problem statement inputs.
First, install dependencies
npm install
Run:
npm run start {FILE_PATH}
Replacing FILE_PATH with the path of the file of the input.
Example:
npm run start input.example
Run the tests using the following command:
npm run test