Soldier,
Your mission is to direct the robot to the green zone.
Try not to hit walls
If you hit a wall, the robot cannot continue.
Directions should be typed over in the leftmost box.
There are four commands you can give the robot.
1. f(distance) This command tells the robot to go forward distance squares. For example, f(2) tells the robot to go forward 2 squares.
2. l() This command tells the robot to turn left.
3. r() This command tells the robot to turn right.
4. b(distance) This command tells the robot to go back distance squares.
If you leave the number between the ( and ) out, the robot assumes it is one. For example, f() tells the robot to move forward one square.
An example program is:
f(4)
This makes the robot go forward four squares.
Press Run to start the robot.
The robot always goes back to the start when you hit Run or Reset.
The highlighted line is what the robot is currently doing.
While the robot is running, you cannot change the instructions. Press reset to unlock the instructions.