Coder Social home page Coder Social logo

robotcontrol's Introduction

Robot Control

A simple application to simulate a control system for robots. It reads a robot's initial position, parses the input and then asks for a list of commands for the robot to perform.

The first input is expected to be the robot's initial coordinates: the direction it is facing - North, East, South or West - the position in the X axis and the position in the Y axis - both betwen 0 and 99. If no input is entered or the pattern char number number is matched, then the robot's position will defaults to N 0 0.

The second input is a set of commands - M to move, L to turn left and R to turn right. Each command may be followed by a number of times to perform it. So the command set M8L2M3R will move 8 times, turn left twice, move 3 times and turn right once, as if there is no number after a command, it defaults to 1.

Application commands

  • Install dependencies: npm install
  • Linter: npm run lint
  • Compile and build: npm run build
  • Run tests: npm run test
  • Run: npm start

robotcontrol's People

Contributors

leandropaz avatar

Watchers

James Cloos avatar  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.