The common variety robot coding test - but in nodejs!
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 heading
The 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!"
- simulation.js - contains the Robot class that simulates the robot
- test/test.js - contains unit tests that ensure that the objectives are met. Start here!