This is a Robot Simulator which hangs around a table of 5 X 5 size in any direction. It will not move if its going to fall down.
If you don't have your environment setup and prefer dockerized way of running this project, this section might interest you.
- Download and Install Docker
- Run Docker Deamon
- Download or unzip the repo at a particular position in your computer (assuming /Users/me/robot)
cd /Users/me/robot
docker build -t toy-robot .
docker run -d toy-robot
- It will print CONTAINER_ID, better copy it in notepad. You have to use this ID in next step
docker exec -it CONTAINER_ID /bin/sh -c "[ -e /bin/bash ] && /bin/bash || /bin/sh"
- You have successfully installed the project inside docker container
- Install dependencies using
npm install
- Run Robot Simulator
npm run robot:run
- you can use
npm run test
command to test the project
- PLACE 0,0,NORTH (This will initialize robot)
- MOVE (This will move robot one step ahead in current direction)
- RIGHT (This will mode direction towards right)
- LEFT (This will move direction towards left)
- REPORT (This will show you current location)
- In order to see realtime code coverage, use
npm run code_coverage
command. - As its evident via the badge present on the top around the coverage of code. For more indepth report please visit here
- Please refer to PROBLEM.md for information on what this repo is made for