Giter Site home page Giter Site logo

robot's Introduction

Coverage Status Build Status GitHub closed pull requests

Robot Simulator

Introduction

This is a Robot Simulator which hangs around a table of 5 X 5 size in any direction. It will not move if its going to fall down.

Environment Setup

If you don't have your environment setup and prefer dockerized way of running this project, this section might interest you.

Installation Guide using Docker

  1. Download and Install Docker
  2. Run Docker Deamon
  3. Download or unzip the repo at a particular position in your computer (assuming /Users/me/robot)
  4. cd /Users/me/robot
  5. docker build -t toy-robot .
  6. docker run -d toy-robot
  7. It will print CONTAINER_ID, better copy it in notepad. You have to use this ID in next step
  8. docker exec -it CONTAINER_ID /bin/sh -c "[ -e /bin/bash ] && /bin/bash || /bin/sh"
  9. You have successfully installed the project inside docker container

Running Robot

  1. Install dependencies using npm install
  2. Run Robot Simulator npm run robot:run

Test Project

  • you can use npm run test command to test the project

Use following commands as example to move Robot on table

  • PLACE 0,0,NORTH (This will initialize robot)
  • MOVE (This will move robot one step ahead in current direction)
  • RIGHT (This will mode direction towards right)
  • LEFT (This will move direction towards left)
  • REPORT (This will show you current location)

Code Coverage

  • In order to see realtime code coverage, use npm run code_coverage command.
  • As its evident via the badge present on the top around the coverage of code. For more indepth report please visit here

Notes

  • Please refer to PROBLEM.md for information on what this repo is made for

robot's People

Contributors

sheeraz1022 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.