A robot simulator

How to run the program:

  1. Clone the project
git clone https://github.com/longnt80/robot-simulator.git
  1. Install dependencies:
npm install
  1. Build the program:
npm run build
  1. Start the program:
npm run start

Example commands:

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.