Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 884 Bytes

README.md

File metadata and controls

30 lines (17 loc) · 884 Bytes

Robot Challenge

The console application which is a simulation of a toy robot moving on a square tabletop, of dimensions 5 units x 5 units.

Available Scripts

In the project directory, you can run:

npm install

Right after cloning, you need to run this command to run the scripts below.

npm start

Runs the console app.

Commands

  • PLACE X,Y,F will put the toy robot on the table in position X,Y and facing NORTH, SOUTH, EAST or WEST.
  • MOVE will move the toy robot one unit forward in the direction it is currently facing.
  • LFET and RIGHT will rotate the robot 90 degrees in the specified direction without changing the position of the robot.
  • REPORT will announce the X,Y and orientation of the robot.

npm test

Launches the test runner in the watch mode.

npm run testData

Runs all the test data saved in src/testData directory.