Around the Flower Bed

The path goes around a flower bed, and there are bones in its corners. The dog has to walk around the bed and pick up the bone in each corner.

Before you start building, find the pattern. What does the dog do along one side of the bed? It takes three steps, picks up a bone and turns right so it can go on along the next side. Along the second and third sides, it does exactly the same.

So this whole group of blocks belongs in the loop, and the loop repeats it for each side. How many passes do you need? Count the bones: there's none at the start.

Instructions

Pick up all three bones.

Use at most 6 blocks.

Start programming for free

By signing up, you agree to the Terms of Service and Privacy Policy.

Or sign up with:

6/8