TURTLE GRAPHICS 1.04



ASSIGNMENT:
The new commands used in this example are pu (penup) and pd (pendown). The solution for this example could have been done in a single line through the use of embedded repeats, but that would have been very difficult for the student to understand. But the student should notice that nine of these lines are identical. When this happens it's a pretty good clue that you could save yourself a lot of typing by using embedded repeats. HINT: You should look at the help screen for an explanation of the prev command.
re 4 [[ fd 20 rt 90 ]] pu fd 30 pd re 4 [[ fd 20 rt 90 ]] pu fd 30 pd re 4 [[ fd 20 rt 90 ]] pu fd 30 pd pu sz 30 0 pd re 4 [[ fd 20 rt 90 ]] pu fd 30 pd re 4 [[ fd 20 rt 90 ]] pu fd 30 pd re 4 [[ fd 20 rt 90 ]] pu fd 30 pd pu sz 60 0 pd re 4 [[ fd 20 rt 90 ]] pu fd 30 pd re 4 [[ fd 20 rt 90 ]] pu fd 30 pd re 4 [[ fd 20 rt 90 ]] pu fd 30 pd

TURTLE CHALLENGES

Challenge #1

Challenge #2

Challenge #3

Challenge #4