Teach with the robot playground

A programming practice companion, not a complete K–12 computer science curriculum. Age bands are starting points; adapt to experience and reading needs. The 12+ band is introductory and does not replace a high-school course.

Ready for your first session?

Use the 30-minute lesson plan, printable student worksheet, and exit ticket. There are also short extensions for loops and AI discussions.

Open the classroom lesson kit →

A short lesson routine

  1. Predict: ask learners to trace a short program before running it.
  2. Try it: inspect the working example with Run or Step. Explain the highlighted block.
  3. Change it: repair the deliberately faulty program. Ask what changed and why.
  4. Solve it: build a program from an empty workspace on a new map.
  5. Create and reflect: build a world, name it, and write or dictate a short reflection with adult support if needed.

Suggested pacing: one concept over several brief sessions, with additional practice as needed. Each level unlocks a concept and its necessary companion blocks. Students can revisit or skip levels; activities are not timed.

Interpret progress carefully

RecordWhat it tells you
Stars / skill practicedA lesson was completed, potentially with an example or help. Replays do not add stars.
Independent solveSolve it was completed without revealing a full example or final worked hint in that activity. It is not a proctored assessment or proof of mastery.
Tested on three mapsThe same program worked on three related layouts. These use rotation and off-route obstacles, so add your own contrasting cases to test deeper generalization.

Listen for an explanation, ask for a prediction, then vary a constraint. A completion badge alone does not show understanding. Imported and custom worlds do not award lesson progress.

Support and extension

Save and share work

My creations stores projects and optional reflections locally. Download a JSON project file to take it to another device, then import and open it there. Imported files are checked for supported blocks and valid map layouts. Files contain the project name, reflection, world, code, and robot appearance—no account is required. Browser progress records do not transfer with project files.

Lesson-by-lesson guide

Explorers · ages 5–7

Level 1 · Move forward
Objective
Sequence a route one tile at a time.
Watch for
A move follows the robot’s facing direction, not the top of the screen.
Ask
Where will the robot be after the next move?
Extend
Design a two-star route.
Evidence to look for
The learner predicts a result, explains a change, and applies Move forward to a new map.
Level 2 · Turn right
Objective
Use a clockwise quarter turn.
Watch for
Turning changes direction but does not move a tile.
Ask
Which direction will it face after turning?
Extend
Reach the same star from a rotated start.
Evidence to look for
The learner predicts a result, explains a change, and applies Turn right to a new map.
Level 3 · Turn left
Objective
Choose between left and right turns.
Watch for
Left is relative to the robot, not the learner.
Ask
How could you act out this turn?
Extend
Find two different routes.
Evidence to look for
The learner predicts a result, explains a change, and applies Turn left to a new map.
Level 4 · Move backward
Objective
Move behind the robot without turning.
Watch for
Moving backward does not reverse its facing direction.
Ask
Which way will it face after reversing?
Extend
Park the robot using forward and backward moves.
Evidence to look for
The learner predicts a result, explains a change, and applies Move backward to a new map.
Level 5 · Wait one beat
Objective
Place a pause in an ordered sequence.
Watch for
Waiting does not advance the robot.
Ask
What changes when the robot waits?
Extend
Invent a stop-and-go crossing routine.
Evidence to look for
The learner predicts a result, explains a change, and applies Wait one beat to a new map.
Level 6 · Repeat
Objective
Group repeated actions in a counted loop.
Watch for
The count repeats the entire body.
Ask
How many moves will this loop make?
Extend
Replace repeated sequences with a loop.
Evidence to look for
The learner predicts a result, explains a change, and applies Repeat to a new map.
Level 7 · Move steps + Number
Objective
Use a number as an input to movement.
Watch for
The number is a count of steps, not a map coordinate.
Ask
What changes if the input increases by one?
Extend
Reach a nearer and a farther star.
Evidence to look for
The learner predicts a result, explains a change, and applies Move steps + Number to a new map.
Level 8 · Define + Call function (optional stretch)
Objective
Name and call a reusable sequence.
Watch for
Defining a function alone does not run its body.
Ask
Where is this function called?
Extend
Use the same function in two routes.
Evidence to look for
The learner predicts a result, explains a change, and applies Define + Call function to a new map.

Builders · ages 8–11

Level 1 · Move forward
Objective
Sequence a route one tile at a time.
Watch for
A move follows the robot’s facing direction, not the top of the screen.
Ask
Where will the robot be after the next move?
Extend
Design a two-star route.
Evidence to look for
The learner predicts a result, explains a change, and applies Move forward to a new map.
Level 2 · Turn right
Objective
Use a clockwise quarter turn.
Watch for
Turning changes direction but does not move a tile.
Ask
Which direction will it face after turning?
Extend
Reach the same star from a rotated start.
Evidence to look for
The learner predicts a result, explains a change, and applies Turn right to a new map.
Level 3 · Turn left
Objective
Choose between left and right turns.
Watch for
Left is relative to the robot, not the learner.
Ask
How could you act out this turn?
Extend
Find two different routes.
Evidence to look for
The learner predicts a result, explains a change, and applies Turn left to a new map.
Level 4 · Repeat
Objective
Group repeated actions in a counted loop.
Watch for
The count repeats the entire body.
Ask
How many moves will this loop make?
Extend
Replace repeated sequences with a loop.
Evidence to look for
The learner predicts a result, explains a change, and applies Repeat to a new map.
Level 5 · If path is clear
Objective
Run a body only when a path check is true.
Watch for
An if checks once; it does not keep checking.
Ask
What happens when the path is blocked?
Extend
Try the same code with an obstacle added.
Evidence to look for
The learner predicts a result, explains a change, and applies If path is clear to a new map.
Level 6 · Repeat until all stars
Objective
Repeat while stars remain.
Watch for
A loop needs actions that can reach its stopping condition.
Ask
How does the robot know when to stop?
Extend
Move the star farther away and test again.
Evidence to look for
The learner predicts a result, explains a change, and applies Repeat until all stars to a new map.
Level 7 · Calculate
Objective
Use a calculation as a movement input.
Watch for
The result, not each operand, controls the move.
Ask
What number will this calculation produce?
Extend
Find two calculations with the same result.
Evidence to look for
The learner predicts a result, explains a change, and applies Calculate to a new map.
Level 8 · Set variable
Objective
Store and reuse a named number.
Watch for
A variable must be set before it is read.
Ask
Where does this value come from?
Extend
Change one stored value to adapt a route.
Evidence to look for
The learner predicts a result, explains a change, and applies Set variable to a new map.
Level 9 · Change variable
Objective
Update an existing variable.
Watch for
Changing by a value adds to the old value.
Ask
What is the value before and after this block?
Extend
Count a repeated action with a variable.
Evidence to look for
The learner predicts a result, explains a change, and applies Change variable to a new map.
Level 10 · Define + Call function
Objective
Name and call a reusable sequence.
Watch for
Defining a function alone does not run its body.
Ask
Where is this function called?
Extend
Use the same function in two routes.
Evidence to look for
The learner predicts a result, explains a change, and applies Define + Call function to a new map.
Level 11 · Function with a parameter
Objective
Pass a numeric input into a reusable function.
Watch for
The parameter is available inside its function.
Ask
How do two calls with different inputs behave?
Extend
Reuse one function for two distances.
Evidence to look for
The learner predicts a result, explains a change, and applies Function with a parameter to a new map.
Level 12 · Compare + If / else
Objective
Choose a branch using a comparison.
Watch for
A comparison produces true or false, not a number.
Ask
Which branch will run and why?
Extend
Test values on both sides of the comparison.
Evidence to look for
The learner predicts a result, explains a change, and applies Compare + If / else to a new map.

Inventors · ages 12+

Level 1 · Move forward
Objective
Sequence a route one tile at a time.
Watch for
A move follows the robot’s facing direction, not the top of the screen.
Ask
Where will the robot be after the next move?
Extend
Design a two-star route.
Evidence to look for
The learner predicts a result, explains a change, and applies Move forward to a new map.
Level 2 · Turn right
Objective
Use a clockwise quarter turn.
Watch for
Turning changes direction but does not move a tile.
Ask
Which direction will it face after turning?
Extend
Reach the same star from a rotated start.
Evidence to look for
The learner predicts a result, explains a change, and applies Turn right to a new map.
Level 3 · Turn left
Objective
Choose between left and right turns.
Watch for
Left is relative to the robot, not the learner.
Ask
How could you act out this turn?
Extend
Find two different routes.
Evidence to look for
The learner predicts a result, explains a change, and applies Turn left to a new map.
Level 4 · Repeat
Objective
Group repeated actions in a counted loop.
Watch for
The count repeats the entire body.
Ask
How many moves will this loop make?
Extend
Replace repeated sequences with a loop.
Evidence to look for
The learner predicts a result, explains a change, and applies Repeat to a new map.
Level 5 · If path is clear
Objective
Run a body only when a path check is true.
Watch for
An if checks once; it does not keep checking.
Ask
What happens when the path is blocked?
Extend
Try the same code with an obstacle added.
Evidence to look for
The learner predicts a result, explains a change, and applies If path is clear to a new map.
Level 6 · While path is clear
Objective
Repeat while the path remains clear.
Watch for
A while loop checks again before each repetition.
Ask
What ends this loop?
Extend
Run one program in two corridors of different lengths.
Evidence to look for
The learner predicts a result, explains a change, and applies While path is clear to a new map.
Level 7 · Calculate
Objective
Use a calculation as a movement input.
Watch for
The result, not each operand, controls the move.
Ask
What number will this calculation produce?
Extend
Find two calculations with the same result.
Evidence to look for
The learner predicts a result, explains a change, and applies Calculate to a new map.
Level 8 · Set variable
Objective
Store and reuse a named number.
Watch for
A variable must be set before it is read.
Ask
Where does this value come from?
Extend
Change one stored value to adapt a route.
Evidence to look for
The learner predicts a result, explains a change, and applies Set variable to a new map.
Level 9 · Change variable
Objective
Update an existing variable.
Watch for
Changing by a value adds to the old value.
Ask
What is the value before and after this block?
Extend
Count a repeated action with a variable.
Evidence to look for
The learner predicts a result, explains a change, and applies Change variable to a new map.
Level 10 · Define + Call function
Objective
Name and call a reusable sequence.
Watch for
Defining a function alone does not run its body.
Ask
Where is this function called?
Extend
Use the same function in two routes.
Evidence to look for
The learner predicts a result, explains a change, and applies Define + Call function to a new map.
Level 11 · Function with a parameter
Objective
Pass a numeric input into a reusable function.
Watch for
The parameter is available inside its function.
Ask
How do two calls with different inputs behave?
Extend
Reuse one function for two distances.
Evidence to look for
The learner predicts a result, explains a change, and applies Function with a parameter to a new map.
Level 12 · Compare + If / else
Objective
Choose a branch using a comparison.
Watch for
A comparison produces true or false, not a number.
Ask
Which branch will run and why?
Extend
Test values on both sides of the comparison.
Evidence to look for
The learner predicts a result, explains a change, and applies Compare + If / else to a new map.
Level 13 · And / or
Objective
Combine true/false conditions.
Watch for
AND needs both true; OR needs at least one true.
Ask
When do AND and OR give different answers?
Extend
Test all four pairs of truth values.
Evidence to look for
The learner predicts a result, explains a change, and applies And / or to a new map.
Level 14 · Stars remaining
Objective
Use current world information in a program.
Watch for
Sensor values can change as the program runs.
Ask
When will the number of stars remaining change?
Extend
Test one program in worlds with different star counts.
Evidence to look for
The learner predicts a result, explains a change, and applies Stars remaining to a new map.

Research and curriculum references

The activity sequence adapts the Predict–Run–Investigate–Modify–Make approach described by the Raspberry Pi Foundation. Debugging and sequenced practice are informed by Code.org CS Fundamentals. Creative projects and reflection draw on the Scratch Foundation learning library.

Potential standards connections include sequencing, control flow, variables, modularity, testing, and refinement. This is not a reviewed standards alignment or a CSTA endorsement. Review the CSTA standards and your local requirements before using it as an alignment claim.