kalib-code / toy-robot-challenge

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Toy Robot challenge

Installation

clone the repository on your local run npm install

to play the robot run npm start

When user go through the normal flow

  • When user keys in an invalid 1st command (that should be a PLACE command)
  • When user keys in an invalid coordinate
  • When user keys in an invalid direction
  • When user keys in an invalid commands (input other than PLACE, MOVE, LEFT, RIGHT, REPORT)
  • When the toy robot had moved to an invalid coordinate (changes will be discarded)

TEST

run npm test to start the test

About


Languages

Language:JavaScript 100.0%