Coder Social home page Coder Social logo

toy-robot's Introduction

Toy Robot (NodeJS CLI)

A ES6 NodeJS implementation of toy-robot using ES6 classes.

Built with

  • Node 8.0 or above (tested on 8.4.0)
  • Jest
  • JSDoc

Executing

Command Description
npm install Install dependencies
npm run start Start the robot
npm run test Execute the test
npm run test:watch Watch and execute tests

CLI commands

Once the application is started you can execute the following commands on the cli.

Command Example Action
place x y facing place 0 0 NORTH Positions the robot on the board
move move Moves the robot 1 grid unit in the direction it is facing unless that movement will cause the robot to fall off the grid
left left Rotate the robot 90° anticlockwise/counterclockwise
right right Rotate the robot 90° clockwise
report report Outputs the robot's current grid location and facing direction
exit exit Exits the program

toy-robot's People

Contributors

geemanjs avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.