04 · The Power of Loops
Do more with fewer blocks.
Try it step by step
- Step 1 of 3
A square without a loop
The supplied square starter already has Repeat 4. For this first experiment, take Move and Turn out of the loop and make four copies in a row. Run it once: four sides, four quarter-turns.
/apps/ebrain/code/snap/snap.html · /library/projects/square.xml
- Step 2 of 3
A square with a loop
In this second copy, keep Move and Turn inside Repeat 4. Run it and compare the drawing with your long version. The same pattern needs fewer blocks!
/apps/ebrain/code/snap/snap.html · /library/projects/square.xml
- Step 3 of 3
Triangle challenge
Can you change the repeat count and turn angle to draw an equilateral triangle? The diagram shows the inside angle and the outside turn. Try finding the program yourself. The triangle has three sides. How many times should the instructions repeat?
