- NodeJS
- npm or yarn
Open your terminal and run yarn start
to open and play with our toy robot.
Run yarn test
to run all the tests.
- Robot can be given a sequence of single command or a
txt
file containing multiple command in each new line. - Following are the valid list of commands our robot can understand:
- PLACE X,Y,F (where X, Y are the position on the tabletop, and F is the direction)
- MOVE (will move the Robot by one unit in the current direction)
- LEFT (will rotate the robot by 90 deg. anti-clockwise)
- RIGHT (will rotate the robot by 90 deg. clockwise)
- REPORT (will output the robot location on the table)