This is a React Gatsby project. The purpose of choosing gatsby is to be able to deploy to netlify fast.
follow the ff commands to run the program:
yarn
;yarn start
;
This is also best viewed in a mac machine. As I am using a mac emoji for the robot 🤖
To view the project you can open http://localhost:8000
.
place the robot to coordinates ( x , y , f )
- x is the x axis up to number nth tile
- y is the y axis up to number nth tile
- f is the Robot's direction with allowed parameters: "NORTH","EAST","SOUTH" and "WEST"
The robot will move 1 tile depending on the direction it is facing
will rotate the robot counter clockwise
will rotate the robot clockwise
show robot's current coordinates
Reset's the grid and terminal
CHANGE THE ORIGIN OF THE PLACE COORDINATE ( x , y )
- x is the x axis up to number nth tile
- y is the y axis up to number nth tile
The app's config is mostly done in the source code