Blockly Games Turtle Level 9 -

Lea reviewed the puzzle’s hint again: “Nested like dreams.”

Lea smiled. She had learned that true elegance in code isn’t about more instructions—it’s about finding the repeating pattern inside the pattern. Like dreams within dreams. Loops within loops.

She modified her code:

In the digital haven of Codehaven, there lived a young programmer named Lea. She had conquered eight levels of the legendary Turtle’s Trials. Each level taught her a new way to command the ancient Crystal Turtle—a creature whose shell could draw glowing patterns in the sky.

repeat 2 times do repeat 18 times do repeat 4 times do move forward 100 turn left 90 end turn left 20 end move forward 50 end The turtle drew the first 18 squares (the outer ring), then stepped inward and drew another 18 smaller squares, perfectly interleaved. The screen blazed with cyan and gold light. blockly games turtle level 9

But the trick was this: to draw the nine-pointed star-square, she needed —one inside the other.

repeat 18 times do repeat 4 times do move forward 100 turn left 90 end turn left 20 end She hesitated. “Eighteen squares, each turned 20 degrees after completion. 18 × 20 = 360 degrees. That means… the last square will perfectly align with the first.” Lea reviewed the puzzle’s hint again: “Nested like

The Crystal Turtle stirred. Its shell hummed. Slowly, it crawled forward, drawing a perfect square. Then another, rotated slightly. Then another. The lines began to overlap, creating a mesmerizing geometric mandala. The ninth square completed the first full symmetry—and by the 18th square, the star had closed upon itself like a cosmic knot.