- The application is a simulation of a toy robot moving on a square tabletop, of dimensions 5x5.
- There are no other obstructions on the table surface.
- The robot is free to roam around the surface of the table, but must be prevented from falling to destruction. Any movement that would result in the robot falling from the table must be prevented, however further valid movement commands must still be allowed.
Initial command, to place the robot on a position
- X -> x coordinate
- Y -> y coordinate
- F -> facing side(NORTH, EAST, SOUTH, WEST)
Move the robot to current robot facing side. Ex: if the robot is facing south, it will move south
Robot will face the left side(90 degrees)
Robot will face the right side(90 degrees)
yarn
ornpm
- Install dependencies running
yarn install
ornpm install
yarn dev
ornpm run dev
- Open http://localhost:3000 with your browser to see the result.