- Clone the project
git clone https://github.com/longnt80/robot-simulator.git
- Install dependencies:
npm install
- Build the program:
npm run build
- Start the program:
npm run start
You can type in a single command at a time or multiple commands in a string separate by a whitespace.
Single command:
PLACE 0,0,NORTH
then:
MOVE
LEFT
REPORT
or you can paste in multiple commands:
PLACE 0,0,NORTH MOVE MOVE REPORT RIGHT MOVE MOVE LEFT MOVE REPORT
To quit the program, press Ctrl+C
.