toy-robot is a simulator of a toy robot that moves on a tabletop.
toy-robot reads instructions from STDIN, executing them one at a time until EOF is reached. (On a Linux or OSX system, type C-d to generate an EOF character).
Put the toy robot on the table in position X,Y and facing NORTH, SOUTH, EAST or WEST. If the robot is already placed, issuing another valid PLACE command will place the robot in the newly specified location.
Moves the toy robot one unit forward in the direction it is currently facing.
Rotates the robot 90 degrees to the left (i.e. counter-clockwise) without changing the position of the robot.
Rotates the robot 90 degrees to the right (i.e. clockwise) without changing the position of the robot.
Announces the X,Y and F of the robot.