On the Subject of Turtle Robot

It’s a bit old and buggy, but it works.

An old terminal computer contains drawing instructions for a Turtle robot. For example:

  • FD 4 — Move 4 steps forward.
  • LT 90 — Rotate 90 degrees left.
  • RT 90 2 — Move in a curve, making 90 degrees of a circle with radius 2.

Following the instructions you’ll get one of the drawings below. It can be rotated, mirrored and/or scaled. The code contains three bugs in the form of extraneous inserted instructions. Use the arrow keys to scroll through the source code. Comment out the bugs using the ‘#’ key. Commenting out a command that isn’t a bug results in a strike. Mark all bugs to solve the module.