Usage
Usage
You define the grid size and RobIT’s initial position. Then issue commands:
L
— Turn leftR
— Turn rightF
— Move forwardB
— Move backward
RobIT exits gracefully if it tries to go beyond the grid.
Example
Enter grid width: 5
Enter grid height: 5
Enter RobIT's x: 2
Enter RobIT's y: 3
Enter direction: N
Enter commands: FFRLF