Lesson 3: Navigation, Commands, and Debugging
Duration of Days: 1
Lesson Objective
Students will build sequential algorithms using direction commands (forward, backward, left, right) and identify/fix errors ("bugs") in simple code sequences.
What do we do when our instructions don't work out the way we planned?
ISTE Standards for Students: Computational Thinker 1.5.a (Automation & Problem Formulation) & 1.5.d (Algorithmic Thinking & Debugging).
Level 3 (Strategic Thinking) — Rationale: Debugging requires students to test a hypothesis, analyze why a sequence failed, evaluate error locations, and revise their logic to achieve a specific target.
GPS navigation systems in cars, step-by-step direction maps, and troubleshooting appliances when they stop working.
Support: Provide physical directional arrow cards for students to lay on the floor or desk before typing/executing code.
Extension: Introduce "obstacle cards" into the path that force students to write longer, alternate route algorithms.
-
Formative Assessment: "Debugging Doctor" check-ins where students explain the specific error in a sample broken code card provided by the teacher.
-
Summative Assessment: Successful completion of a 3-part debugging challenge paper or interactive exercise where students correct misdirected code paths.
-
Directional arrow cards (Up, Down, Left, Right), grid floor mats, paper maze worksheets with "broken" pre-written code pathways.