Instead of writing “move forward 100, turn right 90” four times for a square, the player uses a “repeat 4” block. This teaches that loops reduce redundancy and make code easier to modify.
The typical objective for Level 4 is to draw a (often resembling a winding path). The turtle starts in the center (or a corner) and draws lines that progressively get longer, turning 90 degrees after each line to create a spiral effect. blockly games turtle level 4
Once the star is complete, you need to move the turtle to where the line begins. : This is the crucial new block. Instead of writing “move forward 100, turn right
turn right by 144 (The mathematical angle for a five-pointed star) 2. Lift the Pen and Reposition The turtle starts in the center (or a
For a regular polygon, the external angle is 360° divided by the number of sides. Level 4 often requires the player to deduce this – e.g., for a square, 90°; for a triangle, 120°. This connects programming with basic geometry.
In Level 4, the player is presented with a target shape drawn on a grid – typically a regular polygon, such as a square or an equilateral triangle. The turtle starts at a specific point and must trace the shape exactly. The challenge is not merely to draw the shape but to do so using the fewest blocks possible, encouraging the use of rather than repetitive forward/turn commands.
By completing Level 4, players learn one of the most powerful concepts in coding: . Instead of telling the computer to "Do A, then Do B," you are telling the computer: "Do A repeatedly, but every time you do it, change A slightly."