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
- The 4 by 4 floor grid with the marked front edge.
- Start card and star card.
- Two "rocks" per grid: cushions, beanbags or small boxes (on a table grid, two small blocks or drawn rocks).
- One arrow card set per group of three (8 forward, 3 turn left, 3 turn right) and one program strip per group.
- Job badges: programmer, tester, bot.
- Table grids with a toy robot.
- Ear defenders and a quiet spot.
- Optional, for blind or low-vision children: tactile arrow cards and a raised-edge table grid (rocks as raised blocks).
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.
- 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.
- Test and fix (6 min). Tester runs it one card at a time, as in lesson 3. Fix and retest from the start.
- 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):
- forward, turn right, forward, forward, forward, turn left, forward, forward (8 cards: along row 2, then up column 4);
- forward, turn right, forward, turn left, forward, forward, turn right, forward, forward (9 cards: up column 2, then along row 4).
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)
- "Our programs were different. Can both be right?" (Yes. Both reach the star without hitting a rock.)
- "Is the shortest program the only right one?" (No. Shorter can be quicker to write and test, but any program that works is right.)
- "How did tracing with a finger help?" (We planned the route before choosing the cards, so fewer bugs.)
Closing check (with answers) (4 min)
Same grid, rocks and start. Show two programs:
- Program 1: forward, forward, forward.
- Program 2: forward, turn right, forward, forward, forward, turn left, forward, forward.
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
- Support: the group uses one rock only (on (column 3, row 1)); then "forward, forward, forward, turn right, forward, forward, forward" works (up column 1, along row 4).
- Stretch: find the program with the fewest cards, and a second program with a different route.
Safety
- Rocks are soft (cushions or beanbags) on the floor grid; bots step round them, never over them.
Teacher notes
- Kidbots notes that there can be more than one correct way to program a solution. Make a point of praising two different right programs side by side.
- Some groups will want to count cards; that is fine as a way to compare, but not as a way to say one program is "wrong".