Lesson 1: Write it all first
Unit overview - Next: Lesson 2: Which way is the robot facing?
Goal: Children take the roles of programmer, tester and bot, and write a whole program with forward cards before the bot moves.
Length: about 30 minutes.
Materials
- The 4 by 4 floor grid with the marked front edge (see the unit overview).
- Start card and star card.
- One arrow card set per group of three (only the forward cards are used today) and one program strip per group.
- Job badges: programmer, tester, bot (one set per group).
- Table grids with a toy robot, for groups not on the floor grid and for any child who prefers it.
- Ear defenders and a quiet spot.
- Optional, for blind or low-vision children: tactile arrow cards and a raised-edge table grid.
Steps
Opening (5 min)
Children sit along the front edge. Remind them of the kindergarten robot game: "Last year the robot moved one card at a time while you watched. Today we are real programmers: we write all the cards first, and only then does the robot move."
Show the three jobs with the badges:
- Programmer: lays out the arrow cards on the program strip.
- Tester: points to one card at a time and shows it to the bot, and watches for anything that goes wrong.
- Bot: does exactly what each card says, one square at a time, and nothing else.
Main activity (17 min)
- Teacher models (5 min). Put the start card on (column 1, row 1) and the star on (column 1, row 4). A volunteer bot stands on the start, facing the back of the grid (away from the front edge). Ask: "How many forward cards?" Children count the squares with their fingers in the air. The teacher lays out the cards on the strip, then the tester points to each card and the bot steps. (Answer: three forward cards; the bot ends on the star.)
- Rule check: "Can the programmer add a card once the bot has started?" (No. If it goes wrong, we stop, go back to the start and change the program. That is lesson 3.)
- Groups of three (12 min). Each group takes a turn on the floor grid or works at a table grid. Try:
- start (column 2, row 1), star (column 2, row 3), bot facing the back: two forward cards;
- start (column 4, row 1), star (column 4, row 4), bot facing the back: three forward cards.
Then the programmer puts the star on any square straight ahead of the bot in the same column and writes the program. Swap badges after each route so everyone tries each job they want.
Discussion questions (with answers) (4 min)
- "Why do we write all the cards before the bot moves?" (So the program is finished and can be tested; the bot follows the program, not someone's shouts.)
- "What does the tester do?" (Shows one card at a time and watches for anything going wrong.)
- "The bot stepped two squares for one card. Is that the bot's mistake or the program's?" (The bot's: one forward card is one square. The program was right.)
Closing check (with answers) (4 min)
Put the start card on (column 3, row 1) with a toy robot facing the back. Lay out two forward cards. Children point to where it will stop, then a tester runs it.
Answer: (column 3, row 3), the square two ahead of the start.
Vocabulary
program, programmer, tester, bot, forward, start, star (goal).
Differentiation
- Support: the child counts the squares by touching them on a table grid, then lays down one forward card per square touched.
- Stretch: the programmer writes a program for a star the tester chooses, without counting aloud first.
Safety
- The bot walks, never runs, and only inside the grid.
- Keep the grid clear of bags and chairs; tape down any curling edges.
Teacher notes
- Kidbots (CS Unplugged) separates the jobs on purpose so the programmer cannot fix the program "on the fly". Keep to this today, even when it is tempting to call out.
- Turns come in lesson 2. If a child wants a turn today, say "Great idea: that's next lesson."