Log in to post a comment.

// Global code will be evaluated once.
const turtle = new Turtle();
turtle.penup();
turtle.goto(0,-20);
turtle.pendown();

// The walk function will be called until it returns false.
function walk(i) 
{
    turtle.circle(50)
    turtle.right(10);
    turtle.forward(4);
    
    return i < 40;
}