Want to keep learning?

This content is taken from the Raspberry Pi Foundation & National Centre for Computing Education's online course, Teaching Programming in Primary Schools. Join the course to learn more.

Challenge: Completing the Maze

Can you create code to get the bug to the other objects in the maze, as shown below? For each one, see if you can write a piece of code to get the bug there from the start of the maze.

Banana, apple and doughnut

The Scratch project you’ll need can be found at:


Remember that you can also use the same Scratch project to introduce your learners to sequencing in Scratch.

Extension: Can you create your own maze for others to complete? To do this, click on the stage’s second backdrop and use the ‘Fill with color’ tool to create a custom maze. You can also drag the objects to different positions in the maze.

Create a custom maze

Share this article:

This article is from the free online course:

Teaching Programming in Primary Schools

Raspberry Pi Foundation