This is an old repo. Please refer to the new refactored Toy Robot Simulator - Updated 2020
This is a NodeJS command-line application. The Node version used to develop this is v10.11.0. You may refer to the full problem statement over here
Please view the demo video from this link
Assuming that we would only have 5x5 units of "table" for the toy robot to roam about freely, without falling off.
- Install globally by running
npm install -g
- Execute the command
toy-robot
- Install dependencies by running
yarn install
- Start the program by running
yarn start
- When user go through the normal flow
- When user keys in an invalid 1st command (that should be a PLACE command)
- When user keys in an invalid coordinate
- When user keys in an invalid direction
- When user keys in an invalid commands (input other than PLACE, MOVE, LEFT, RIGHT, REPORT)
- When the toy robot had moved to an invalid coordinate (changes will be discarded)
You may check on the test by running yarn test