Step forward / backward (in the direction of turtle's heading)
Moves the turtle by a distance step in the direction of the turtle's heading (
fd) or opposite to the turtle's heading (
bk). Turtle draws a line if its pen is down.
repeat 10 [
fd 150 rt 18 bk 150 rt 18
Output: drawing in the graphics window.
Table of Content