Giter Site home page Giter Site logo

js-mars-rover's Introduction

JS-MARS-ROVER

Table of Contents

Overview

The purpose of this project, is to approach a technical challenge given, whereby the application needs too use a set of instructions given too a rover, in order too navigate a cartesian plane and return it's current position.

The project consists of a commands directory whereby a file can be copied into and then program can be executed in order too process the command set, naming covention must in the format command.txt, example of text file is given within the commands directory.

Getting Started

Make sure you git clone this repository into a separate space on your machine.

  1. Run Install inside of project directory

    npm install

  2. Run test cases too make sure all test cases pass, as this project makes use of mocha and chai as a testing library for the code

    npm run test

  3. Upload/Copy file too commands directory and proceed to run project.

    npm run start

  4. Design decision taken

    • Function Class over es6 class , as this was part of the technical question posed.
    • TDD approach taken, too make sure that code output is predicable.
    • Separation of concerns for each individual , processing unit, such as reading a file, parsing raw input, and the Rover Class
    • Use of async await too return new promise of file read, instead of callback methods.
    • Within the Rover function -- use of ternary operators, instead of if/else -- jsdoc for method descriptions parameters and return values -- assignment of function too objects --

Contributing to the Project

Feel free fork or cut a branch off this project , too add your changes

js-mars-rover's People

Contributors

jameelio avatar

Stargazers

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