Activity 01
Pair Debug Challenge: Sprite Maze
Provide buggy code for a sprite to navigate a maze. Pairs predict what will happen, run the code, note the exact failure point, and fix one block at a time. They swap with another pair to test fixes and explain changes.
Justify why 'failing' is a vital part of the programming process.
Facilitation TipDuring Pair Debug Challenge, circulate and ask each pair to explain one bug they found and how they fixed it before moving to the next maze.
What to look forProvide students with a simple sprite program containing one obvious bug (e.g., a sprite moving left instead of right). Ask them to run the code, identify the incorrect block, and explain what change they would make to fix it.