Unit: Repeating Patterns, Treasure-Map Debugging, and Keeping Information Safe (Computing, Grade 2)
Unreviewed AI draft. Written by Gemini 4 Argon (2026-11-05). No human teacher has reviewed this unit. All content is CC0 1.0 Public Domain.
Overview
By Grade 2 (ages 7–8), students are ready to write longer unplugged programs on paper grids, compress repeating staircases and border paths using REPEAT n TIMES blocks, compare two different routes to find which one uses fewer steps, and learn an essential real-world computing habit: which personal information must be kept private vs. when to check context and permission with a trusted adult before sharing creative work.
Across five 35-minute unplugged lessons, Grade 2 students trace and write arrow programs on 4×4 treasure maps, spot and compress repeating patterns (↑ → ↑ → ↑ → becomes REPEAT 3 TIMES: [ ↑ → ]), compare short vs. long routes around map obstacles, debug paper treasure maps where one wrong instruction sends the explorer into a swamp or rock wall, and sort fictional character cards into Check Permission & Context (Class Project Page with Adult & Creator Approval) vs. Private Personal Information (Never Post Publicly) protected by unique, long, unpredictable secrets (passphrases).
Prior knowledge
- Students have experience with
First → Next → Last ordering, symbols, and single-rule sorting (Symbols, signals, sorting, and step-by-step recipes, Grade 1), and can count and add whole numbers up to 20.
- Helpful cross-links:
- Solids, liquids and melting (Science, Grade 2) uses step-by-step observation logs and reversible/irreversible state changes.
- Maps, routes and places (Society, Grade 3) extends grid navigation with map legends and compass directions.
- Leads to: Inputs, outputs, loops, and debugging (Computing, Grade 3) and Computing & systems progression.
Learning goals
By the end of this unit, a student can:
- Write and trace a cardinal-arrow program (
↑ North, ↓ South, → East, ← West) on a 4×4 grid to navigate from a Start square to a Treasure Chest while avoiding obstacle squares (Lesson 1).
- Identify a repeating group of steps in a long arrow program and rewrite it using a
REPEAT n TIMES block, counting how many arrows were saved (Lesson 2).
- Compare two different valid algorithms that reach the same goal on a 4×4 map and determine which route takes fewer steps (Lesson 3).
- Find and repair the exact step (bug) where a broken map program hits an obstacle or misses the treasure, and verify the repair by tracing from the start (Lesson 4).
- Sort fictional character examples into Check Permission & Context Before Sharing (like a classroom drawing or project puzzle shared only with creator and trusted-adult permission) vs. Private Personal Information (like a home street address, phone number, schedule, or account password that must never be posted), and explain why a real passphrase must be unique, long, and unpredictable—and never copied from a printed example (Lesson 5).
Lesson sequence
| Lesson |
Title |
Time |
Core idea |
| Lesson 1 |
Treasure-Map Grids: Following and Writing Arrow Programs |
35 min |
A grid algorithm uses exact directional arrows (↑, ↓, →, ←) to reach a goal without hitting obstacles |
| Lesson 2 |
Staircases and Borders: Shrinking Programs with REPEAT |
35 min |
When steps repeat in a pattern (↑ → ↑ → ↑ →), a REPEAT n TIMES loop makes the program shorter and clearer |
| Lesson 3 |
Two Roads to the Treasure: Comparing Short and Long Routes |
35 min |
More than one algorithm can solve the same problem; we can compare routes by counting total steps |
| Lesson 4 |
Map Bug Detectives: Tracing and Fixing Broken Routes |
35 min |
Debugging means stepping through a map program one square at a time to find and fix the exact wrong arrow |
| Lesson 5 |
Public vs. Private: Keeping Personal Information Safe |
35 min |
Private personal details and passwords must never be posted publicly, and even creative work requires checking context and permission with a trusted adult |
Materials for the whole unit
- Printed or hand-drawn 4×4 grid maps (one per student or pair; ASCII diagrams included in every lesson)
- Pencils, erasers, and large paper boat or cardboard tokens (
at least 5 cm wide) to slide across grid squares (with pointing, verbal/dictated, or tactile card options available in every lesson)
- Green and Red crayons or markers (for Lesson 5's Public vs. Private sorting cards)
Assessment summary
Each lesson ends with a 3-question exit check with complete worked solutions (which students may complete in writing, by pointing, or orally/dictated). In Lesson 5, students complete a 3-question exit check covering a 4-option privacy sort, a passphrase comparison, and a 4×4 grid loop trace.
Sources
These references provide teacher background for the concepts in this Grade 2 unit. All links were checked to load on 2026-11-05.
- Algorithm (step-by-step problem-solving procedure): https://en.wikipedia.org/wiki/Algorithm — background for Lessons 1 and 3.
- For loop (count-controlled repetition in programming): https://en.wikipedia.org/wiki/For_loop — background for Lesson 2's
REPEAT n TIMES compression.
- Debugging (tracing and fixing errors in a program): https://en.wikipedia.org/wiki/Debugging — background for Lesson 4's step-by-step map trace.
- Information privacy (distinguishing personal data that requires protection): https://en.wikipedia.org/wiki/Information_privacy — background for Lesson 5's private vs. public information sort.
- Password (secret word or phrase used to protect access): https://en.wikipedia.org/wiki/Password — background for Lesson 5's strong passphrase activity.
- Bell, T., Witten, I. H., & Fellows, M. (2015). CS Unplugged (general pedagogical reference for unplugged computing; all text, maps, and activities in this unit are original CC0 work): https://www.csunplugged.org/
Known gaps and cautions
- Unreviewed AI draft: This unit has not yet been reviewed by a human Grade 2 teacher or classroom-tested with 7-to-8-year-old students.
- Cardinal Grid Arrows (
↑ ↓ → ←) vs. Relative Robot Turns: In Grade 2, map arrows move the token 1 square in the arrow's direction on the page (↑ = 1 square Up/North on the map, → = 1 square Right/East on the map). Relative body turns (TURN LEFT 90° while keeping track of which way the robot's nose is pointing) are separated into Kindergarten physical floor play and Grade 3 Computing so Grade 2 students can focus cleanly on loop compression and route comparison on paper grids.
- Privacy discussion sensitivity (Lesson 5): During Lesson 5, remind students never to say or write their real home address, real phone number, or real family passwords out loud or on their worksheets. All sorting cards use fictional storybook characters (like "Barnaby Bear's cave address").