Lesson 4: Round the rocks

Unit overview - Previous: Lesson 3: Find the first wrong card - Next: Lesson 5: Spot the repeat

Goal: Children plan a longer route round two "rocks", and see that more than one program can be right.

Length: about 30 minutes.

Materials

Steps

Opening (5 min)

Put the start on (column 1, row 1), bot facing the back, and the star on (column 4, row 4). Put rocks on (column 1, row 3) and (column 3, row 1). "The bot can't go through a rock. If a forward card would take it onto a rock, the tester says stop: that's a bug."

Ask a child to trace one way with a finger in the air. Ask another child for a different way.

Main activity (17 min)

Groups of three with badges. Same start, star and rocks for every group.

  1. Plan and write (6 min). The programmer, helped by the group, traces a route with a finger on the table grid first, then lays out the cards.
  2. Test and fix (6 min). Tester runs it one card at a time, as in lesson 3. Fix and retest from the start.
  3. Compare (5 min). Two groups show each other their programs. Are they the same? Do both reach the star?

Two right programs (there are others):

Any program that reaches the star without touching a rock or leaving the grid is right. Early finishers move one rock and write a new program.

Discussion questions (with answers) (4 min)

Closing check (with answers) (4 min)

Same grid, rocks and start. Show two programs:

Ask: "Which one reaches the star? What happens to the other?" Children point or hold up one or two fingers.

Answer: program 2 reaches the star. Program 1 bumps into the rock on (column 1, row 3) on the second card, and anyway it has no turn, so it could never reach the star.

Vocabulary

route, obstacle (rock), plan, more than one way.

Differentiation

Safety

Teacher notes