RaijnAU / toy-robot

Deployed:
https://gifted-meninsky-03d86f.netlify.com/
1 stars 0 forks source link

Toy Robot Simulator

Create a library that can read in commands of the following form:

PLACE X,Y,DIRECTION; MOVE; LEFT; RIGHT; REPORT

Example Input and Output:

a) PLACE 0,0,NORTH; MOVE; REPORT; Output: 0,1,NORTH

b) PLACE 0,0,NORTH; LEFT; REPORT; Output: 0,0,WEST

c) PLACE 1,2,EAST; MOVE; MOVE; LEFT; MOVE; REPORT; Output: 3,3,NORTH