Map Robot Lab teaching notes
For computer science teachers in grades 5 to 8. These notes cover a first period, the levels, the misconceptions the app is built to confront, and what it leaves out.
Using this with a class? Make a free class and add your students yourself: each gets a username and password, with no email or Google account needed. Or give them one join code. Using Google Classroom? Post the link there; with a free class, the link also puts each student in your class, so you see their work. mytekDev is also available from the Google Workspace Marketplace, so your school's Google admin can install it for everyone.A first lesson: Open it on the projector at Level 2 and ask the class for directions from the Depot to the Pizza Place. Most will say east, north, north: try it, and the van arrives in 3 blocks and 6 minutes. Then try north, north, east. Also 3 blocks, but 4 minutes. Ask why, and point at the numbers on the roads: the green avenue is 1 minute a block, the gray streets 2. The same number of blocks, a different time, and the question of what "shortest" means has started.
Set up a free class Share to Google Classroom- About these notes
- A first period
- The levels
- What students get wrong, and where the app answers it
- What the app simplifies, on purpose
- Setting it up for a class
- Standards
About these notes
Map Robot Lab is a small town and a delivery van, programmed in Blocks or Python. The town is 8 corners by 6 with a lake in the middle. Each road shows its minutes: 1 on the green avenue around the edge, 2 on the gray streets, 5 on Main Street, which is stuck in traffic. The Trip log counts blocks, minutes, school roads and plans made, and shows the fastest possible trip.
There are nine levels, and each saves its result. Levels 1 to 3 drive by directions and by heading for the goal; Level 4 brings in the route planner; Levels 5 to 8 change what a road costs, close a road, avoid the school and order three stops; Level 9 is a town the student builds. Each level's card says what to do, and How it works, in the Help menu, has a picture for each idea.
A first period
Levels 1 to 4 fit in a period, with time to talk about why heading for the goal got stuck.
- Run the starter (5 minutes) Open Level 1 and press the round play button or the space bar. The van drives east, east, south to the Bakery: 3 blocks, 6 minutes. Ask: would the same directions work from somewhere else?
- Directions by hand (10 minutes) Level 2: change the directions so the van gets to the Pizza Place. Collect the class's answers. East, north, north takes 6 minutes; north, north, east takes 4. Point at the road numbers: the green avenue is 1 minute a block.
- One rule (15 minutes) Level 3: one program for three deliveries. Repeat until arrived: if the goal is east and the van can drive east, drive east, and the same for the other ways. It reaches the Pizza Place, the Bakery and the Zoo.
- The lake (15 minutes) Level 4: run the same program to the Library. It stops at (2,2), facing the lake. Then plan a route to the goal and follow the route. Tick Show ripple and press Step a few times: the cheapest bubble turns solid each time, and the van drives when the Library's bubble does.
The levels
Each level opens with one idea and a card that says what to do. The finish card says what the run showed, and the Routes chart keeps every route tried on the trip so they can be compared.
| Level | The job | What it is built to show |
|---|---|---|
| 1. Press play | Run the starter to the Bakery | A program is a list of directions: east, east, south, 3 blocks in 6 minutes |
| 2. Drive it yourself | Write directions to the Pizza Place | Two ways are 3 blocks; north on the green avenue first takes 4 minutes, the other 6 |
| 3. Head for the goal | One program for three deliveries | A loop with conditionals: drive whichever way the goal is (Pizza Place 3 blocks, Bakery 3, Zoo 8) |
| 4. The lake | Get to the Library, across town | Heading for the goal gets stuck at the lake; the ripple planner finds 11 blocks (33 minutes) |
| 5. Fewest blocks isn't fastest | The Theater in 10 minutes or less | Cost decides best: 7 blocks take 24 minutes on Main Street; a cost of minutes finds 9 blocks in 10 |
| 6. Road closed | Get to the Hospital past a closed road nobody knows about | A plan made at the start drives into the closure; planning after every block arrives in 12 blocks, 18 minutes |
| 7. Quiet streets | The Hospital at 3 pm without passing the school | Minutes plus 10 on a school road: 14 blocks, 14 minutes, no school roads, where the fastest is 10 minutes past the school |
| 8. Three deliveries | The Zoo, the Pizza Place and the Library in 18 minutes or less | The job list's order takes 31 minutes; closest next takes 18, the best of all six orders here |
| 9. Your town | Build a town, then deliver to every stop | Testing programs on a new map: roads, water, places, a start and up to four stops |
Python starts from town import Robot, then robot = Robot(). Driving: robot.drive("north"), robot.can_drive("east"), robot.goal_east() and robot.goal_north() (blocks to the goal; less than 0 means the other way), robot.arrived(), robot.goal(). Planning: robot.plan(robot.goal()), robot.follow(), robot.step(). The cost: def cost(road): using road.minutes() and road.school(); it must return a number above 0. Stops: robot.stops(), robot.set_goal(place), robot.minutes_to(place). On a trip with stops the goal starts as the first stop and moves to the next one after each delivery. The Blocks say the same things, and the Python tab shows the Python the blocks make.
What students get wrong, and where the app answers it
| What students think | Where the app answers it |
|---|---|
| Shortest means fewest blocks | Level 2: two routes of 3 blocks take 4 and 6 minutes. Level 5: the fewest blocks, 7, take 24 minutes in traffic, where 9 blocks take 10. |
| Going toward the goal always gets you closer to arriving | Level 4: the van heads for the Library and stops at the lake's edge, with the goal still ahead and no road onward. |
| The app knows the whole map already, so one plan is enough | Level 6: a closed road looks normal until the van gets there. A plan made at the start drives into it; a program that plans again after every block gets around. |
| There is one best route | Levels 5 and 7: fewest blocks, fewest minutes and no school roads are three different routes. The cost decides which one is best. |
| A computer just tries every way | Level 8: 3 stops have 6 orders, and the app shows all six, but 10 stops have 3,628,800. Real apps use shortcuts like closest next, which is quick but not always the very best. |
| The first number the planner writes at a corner is its cost | Step through the ripple: a bubble's number can go down when a cheaper way in turns up. Only a solid bubble's number is sure. |
What the app simplifies, on purpose
- The town is a grid of 8 corners by 6, and every road goes both ways.
- Every road takes a whole number of minutes that never changes: 1, 2 or 5. Turns, lights and stops take no time.
- The van finds a closed road only when it gets there. Real map apps also get news while you drive, such as live traffic and closures other drivers report.
- The planner is a simple version of Dijkstra's algorithm. Real map apps use the same idea with extra tricks that make it fast enough for millions of roads.
- Avoiding school roads adds 10 minutes to each one, so the van still takes one when going around would take more than 10 extra minutes. Apps' avoid options work in a similar way, but their details are not published.
- Deliveries end at the last stop; the van does not return to the Depot, and a trip has at most four stops.
Setting it up for a class
No setup is needed. With free accounts, each student's levels, program and Level 9 town save as one project, with a picture of the map. Typed words in a shared project, its name and the program, pass the platform's filter.
Slower, Real time and Speed up change only how fast the van moves on the screen; the minutes do not change. Step moves the ripple one corner at a time, or the van one block. Show ripple and Show costs turn the bubbles and the road numbers on and off. Big screen, in the View menu, is for the projector; Esc leaves it.
Standards
- CSTA 1B-AP-08: compare and refine algorithms for the same task, directions, heading for the goal and planning, on Levels 1 to 4.
- CSTA 1B-AP-10 and 2-AP-12: programs with loops and conditionals, from the heading-for-the-goal rule on Level 3 to planning after every block on Level 6.
- CSTA 2-AP-13: decompose a problem, a delivery job into plan, follow and pick the next stop, on Level 8.
- CSTA 2-AP-14: a procedure with a parameter, def cost(road), that the planner calls for every road, on Levels 5 to 9.
- CSTA 2-AP-17: test and refine a program on new cases, the towns students build on Level 9.
Levels 1 to 4 need only a sequence, a loop and a condition, and fit grade 5 in Blocks. Levels 5 to 9 fit grades 6 to 8, where the cost function and re-planning are the point.
More help
Is something on this page wrong or not clear? Write to us.
Page last reviewed December 2026.
Google, Google Classroom and Chromebook are trademarks of Google LLC.