When the stone door slid open, Lea saw no path, no maze, no simple square. Instead, a single message glowed on the obsidian monolith: “To reveal the Star of Symmetry, you must draw what cannot be seen. One loop is never enough. Two loops, nested like dreams, shall birth the glyph.” The Crystal Turtle blinked its emerald eyes and waited.
“Of course,” she said. “The target image has two layers—an inner ring and an outer ring.” blockly games turtle level 9
But something was wrong. The center was hollow. The glyph was incomplete. When the stone door slid open, Lea saw
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.” Two loops, nested like dreams, shall birth the glyph
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.
The ninth level’s glyph—a double-ringed star of 36 interwoven squares—snapped into existence. A deep chime resonated. The monolith cracked, revealing a hidden passage. Inside lay not a treasure, but a single line of ancient script: “You have mastered the nested loop. Go now, and build complexity from simplicity.” The Crystal Turtle turned its head and nodded once. It had drawn the ninth glyph for the first time in a hundred years.
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.