Lesson 4: Pattern Recognition & Introduction to Loops
Duration of Days: 1
Lesson Objective
Students will identify repeating movement patterns in mazes and use loop (repeat) blocks to condense long code sequences in block programming applications.
Why is it better to use a "Repeat" block instead of snapping 4 of the exact same arrow blocks together?
Where do we see repeating patterns in music, dance, or everyday life?
Loop, Repeat, Pattern, Efficiency
ISTE 5.a (Computational Thinker): Formulate problem definitions suited for technology-assisted methods such as data analysis, abstract models, and algorithmic thinking in exploring and finding solutions.
ISTE 5.c (Computational Thinker): Break problems into component parts, extract key information, and develop descriptive models to understand complex systems or facilitate problem-solving.
ISTE 5.d (Computational Thinker): Understand how automation works and use algorithmic thinking to develop a sequence of steps to create and test automated solutions.
Unplugged Movement Hook: Lead a quick physical rhythm exercise: "Step forward, Step forward, Step forward." Ask students: "How could I say that faster?" ("Step forward 3 times!")
Direct Instruction: Introduce the concept of a loop—a special coding block that repeats commands automatically. Demonstrate snapping a single "Forward" arrow inside a Repeat 4 block in Code.org or Kodable.
Guided Comparison: Compare a 4-block linear program with a 2-block loop program on screen. Demonstrate that both produce the same movement output, but the loop is more efficient.
Independent Application: Students launch loop-focused levels in Code.org Course A, Beaver Achiever, Candy Quest, or Code Monkey.
Closure & Reflection: Students share how using loop blocks saved them time while coding.
DOK:
Level 3 (Strategic Thinking)
Support: Physical movement connection: Have students clap 3 times, then show how a Repeat 3 [Clap] block stands for that exact action.
Extension: Challenge students to solve a multi-turn puzzle using two separate loop blocks in the same program.
Performance check: Student successfully completes a puzzle stage using a Repeat loop block to replace a series of identical directional arrows.