1.0.3 • Published 6 years ago

toy-robot-simulator-js v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Toy Robot Simulator

What is it?

Please read through the doc in docs/Problem.md

Stack Used

  • NodeJS v11.11.0
  • JavaScript - ESLint - Prettier - Husky

Install by cloning the repo

  yarn install
  const toyRobotSimualator =  require("src/index.js");

  toyRobotSimulator(`PLACE 0,0,NORTH
                      MOVE
                      LEFT
                      RIGHT
                      REPORT`);
  // console logging the above result will yield 1,0,NORTH

Install as NPM module

  yarn add toy-robot-simulator-js
  const toyRobotSimulator = require('toy-robot-simulator-js');

  toyRobotSimulator(`PLACE 0,0,NORTH
                      MOVE
                      LEFT
                      RIGHT
                      REPORT`);
  // console logging the above result will yield 1,0,NORTH

Test

  yarn run test

license

MIT