Beginner Coding with Blocks
Chapter
>
Level

Loops and Repetition
More complex looping

Objective

Walk through field and water crops on your way to the exit while only using no more than thirteen (14) blocks.

To complete this level using thirteen (14) or less blocks you must use either the repeat block or while loop block.

Use the: move forward, turn left, turn right blocks inside the loop to move through the field. Along the way, use the water block when standing on an X mark and facing crops to water them.

Remember, loops work like this:

  • While loop block: Use a variable like count, set it to 0, then use a while loop block with a comparison to check if count is less than a number. Place your blocks inside the while loop block, and use change count by to increase it by 1.

  • Repeat block: Use the repeat block and set the number of times you want to repeat. Place your blocks inside the repeat block.

Use whichever loop you like, both are available in the block editor.

Code book