Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pokle/coding-exercise-javascript-robot
The common variety robot coding test - but in nodejs!
https://github.com/pokle/coding-exercise-javascript-robot
Last synced: 10 days ago
JSON representation
The common variety robot coding test - but in nodejs!
- Host: GitHub
- URL: https://github.com/pokle/coding-exercise-javascript-robot
- Owner: pokle
- Created: 2013-02-17T09:44:41.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-05-13T13:38:22.000Z (over 9 years ago)
- Last Synced: 2023-03-11T00:19:11.211Z (over 1 year ago)
- Language: JavaScript
- Size: 147 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
robot
=====The common variety robot coding test - but in nodejs!
[![Circle CI](https://circleci.com/gh/pokle/coding-exercise-javascript-robot.svg?style=svg)](https://circleci.com/gh/pokle/coding-exercise-javascript-robot)
The objective
=============Build a robot simulator that is able to control a remote controlled robot on a two dimensional grid. The robot is issued commands such as:
* Place at an x,y co-ordinate with heading (North, South, East or West)
* Rotate left or right 90 degrees
* Move a single grid unit in the direction of its heading
* Report back position and headingThe most important rule is that I make the rules! This is because I've been asked to write this coding test by a recruiter without being told any more than "do the robot coding test!"
My solution
===========* [simulation.js](simulation.js) - contains the Robot class that simulates the robot
* [test/test.js](test/test.js) - contains unit tests that ensure that the objectives are met. *Start here!*----
[My other coding exercises](https://github.com/search?q=user%3Apokle+coding-exercise)