toy-robot-simulator-js

1.0.3 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i toy-robot-simulator-js

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

46.5 kB

Total Files

7

Last publish

Collaborators

  • nordxai