This is a simple coding challenge for Spottt company. The purpose was to make a simple code to make a robot move in a grid.
Has a type script developer, I decided to use typescript to make the code more readable and maintainable.
first be sure to have node or nvm installed on the machine.
Then run the following commands:
npm install
npm run start
To debug the code on webstorm, you can run the following command:
npm run debug
Then go in public directory, click on main.js and press shift + F9
Then go in typescript files like main.ts, add a breakpoint and press ctrl + F5
An easy way to test robot movements is to run the following command:
npm test