- This application is a simulation of a toy robot moving on a square tabletop of dimensions 5 units x 5 units.
This project was generated with Angular CLI version 13.2.5.
Run ng serve
or npm run start
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng build
or npm run build
to build the project. The build artifacts will be stored in the dist/
directory.
Run ng test
or npm run test
to execute the unit tests via Karma.
- Located in the repo's src folder is a command.txt file that contains a list of commands. The App will display these next to the table that the robot will be moving on. WWhen the app is open you can cycle through the instructions by pressing "Enter" on your keyboard. Each valid instruction activated will trigger an interaction from the Robot.
- These instructions will either move the robot one unit in the direction it's facing, turn it left or right, place it within as specific coordinate set, or report the robot's current position and the direction it's facing.