Map Robot Lab
Students ask a phone for directions every day, and it answers in a moment. Map Robot Lab shows how. A student programs a delivery van in a small town, in Blocks or Python. Directions typed by hand work only when you already know the way, and "always head toward the goal" gets stuck behind a lake. Then the van gets a planner that spreads out from it like a ripple, numbering every corner with what it costs to get there, and the student decides what a road costs: one a block, its minutes in traffic, or more near a school at pickup time. The van plans again when a road turns out to be closed, chooses the order of three deliveries, and finally drives a town the student builds.
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 ClassroomWhat a student actually does
The town is 8 corners by 6, with a lake in the middle, a green avenue around the edge where roads take 1 minute, gray streets that take 2, and a Main Street stuck in traffic at 5. Level 1 runs a starter program, east, east, south, and the van drives to the Bakery in 3 blocks and 6 minutes. Level 2 asks for directions to the Pizza Place: two ways are 3 blocks, and only one of them, north on the green avenue first, takes 4 minutes.
Level 3 asks for one program that works for three deliveries: repeat until arrived, drive whichever way the goal is. It gets to the Pizza Place, the Bakery and the Zoo. Level 4 sends it across town to the Library, and it stops at the lake's edge two blocks in, still facing the goal. Heading for the goal never looks ahead.
So the van gets a planner. "Plan a route to the goal" spreads out from the van like a ripple on a pond, and with Show ripple on, every corner it reaches gets a bubble with the cost so far. It always takes the cheapest bubble next and makes it solid, and when the goal's bubble turns solid, the cheapest way is found and traced back to the van. Step runs it one corner at a time. At 1 a road, it finds the Library in 11 blocks, which takes 33 minutes.
Level 5 asks for the Theater in 10 minutes or less. The fewest blocks, 7, run along Main Street and take 24 minutes. The student adds "a road costs" and makes it return the road's minutes, and the same ripple finds 9 blocks in 10 minutes around by the green avenue. Level 6 hides a closed road on the way to the Hospital: a plan made at the start drives into it, and a program that plans again after every block arrives in 12 blocks and 18 minutes. Level 7 is 3 pm, school is letting out, and a cost of the minutes plus 10 on a school road keeps the van off them: 14 blocks, 14 minutes, no school roads.
Level 8 has three deliveries. In the job list's order they take 31 minutes; going to the closest stop next takes 18, and a table lists all six orders, so students can check that it is the best here. Level 9 is the student's own town: click roads to change their minutes, close them or make them school roads, add water, drag the places, pick the start and up to four stops, then run any program in it.
Programs drive with robot.drive("north"), ask robot.can_drive("east"), robot.goal_east() and robot.goal_north(), plan with robot.plan(robot.goal()) and robot.follow(), and set the cost with def cost(road) using road.minutes() and road.school(). The Trip log counts blocks, minutes, school roads and plans made, and shows the fastest possible trip, and two charts compare the minutes and every route tried.
Level 6, Road closed: the closed road looks normal until the van gets there. Planning again after every block, the van arrives in 12 blocks and 18 minutes.
What they are learning while they work
Nothing here is presented as a lesson. This is what the levels are made of.
| What the student does | What it is |
|---|---|
| Types east, east, south and watches the van follow it | Algorithms as sequences. A list of directions is a program. It works when you already know the way, and only for that one trip. |
| Writes one rule that drives to three different places | Loops and conditionals. Repeat until arrived, and choose each move from where the goal is. One program, many trips. |
| Watches heading for the goal stop at the lake | Greedy algorithms. Taking the move that looks best right now can lead somewhere with no good next move. Planning looks ahead. |
| Steps the ripple one corner at a time | Shortest path search. The planner always takes the cheapest bubble next, so when the goal's bubble turns solid, nothing cheaper can turn up. |
| Writes def cost(road): return road.minutes() | Functions with a parameter. The planner calls the student's function for every road it looks along. Change the function, and the same planner finds a different best route. |
| Makes school roads cost the minutes plus 10 | Choosing what "best" means. Shortest, fastest and quietest are different routes. The cost decides which one the planner finds. |
| Plans again after every block on Level 6 | Re-planning when the world changes. A plan is only as good as what was known when it was made. When the van learns something new, the next plan uses it. |
| Compares 31 minutes in the job list's order with 18 going closest next | Order matters, and checking every order gets slow fast. 3 stops have 6 orders; 10 stops have 3,628,800. Closest next is a quick shortcut that isn't always the very best. |
| Builds a town and runs the same program in it | Testing a program on new cases. A program that works on one map might not work on another. A new town is a new test. |
How to tell whether it landed
Ask, and let them show you on the map. A student who has understood it can answer these without the app's help.
- Your Level 1 directions got the van to the Bakery. Why won't they get it to the Zoo?
- Heading for the goal got stuck at the lake. What did it not know?
- The bubble at a corner said 9, then 7. How can the number go down?
- Why did the fewest blocks take more than twice as long as the route with more blocks?
- Your Level 6 van planned 12 times. Why wasn't one plan at the start enough?
- Your Level 7 route is longer than the fastest one. In what way is it still the best?
- Why don't delivery apps just check every order of stops?
Use it in your subject
Not a technology class? Then the app is how students show what they learned in your unit. More projects for every subject.
Computer science, grades 5 to 8 (CSTA 1B-AP-08, 1B-AP-10, 2-AP-12, 2-AP-13, 2-AP-14, 2-AP-17)
Sequences, loops and conditionals, comparing two algorithms for the same task, a function with a parameter that the planner calls, breaking a delivery job into parts, and testing a program in a new town.
Math
Adding minutes along a route, comparing totals, and counting orders: 3 stops have 6 orders, and 10 stops have 3,628,800.
Technology and society
What a directions app is doing when it picks a route, reroutes around a closure, or avoids tolls, and that "best" is a choice someone made.
Practical notes
- AgesGrades 5 to 8. Levels 1 to 4 work from grade 5 in Blocks; the cost function, re-planning and the order of stops fit grades 6 to 8, and Python is there for students who want it.
- TimeLevels 1 to 3 take about 15 minutes, Levels 4 to 6 about 20, and Levels 7 to 9 about 25. With talk, two class periods.
- EquipmentA computer or Chromebook with a modern browser. Nothing to install.
- CostFree. The app has no paid tier and no AI.
- PrepPlay Levels 1 to 5 once, and on Level 4 tick Show ripple and press Step a few times. Read How it works in the Help menu: it is one screen, with a picture for each idea.
- In a groupOne town per student, or pairs: one writes the program, one predicts the route and the minutes before it runs.
For a class with one projector
Open Level 4 with a plan in the program, tick Show ripple, and press Step instead of play. Each press makes the cheapest bubble solid and gives its neighbors bubbles. Before every press, ask the class which bubble goes next and what number its neighbors will get. When the Library's bubble turns solid, ask why the van can be sure there is no shorter way.
Common questions
Is it free?
Yes. Map Robot Lab has no paid tier, and it can be tried right on this page without an account. Saving needs a free account.
Does it work on a Chromebook?
Yes. It runs in the browser with nothing to install.
Do students need to know how to code?
No. Level 1 runs a starter program, the Blocks tab is drag and drop, and every level's card says what to try. Python is there for students who want it, and the Python tab shows what the blocks say.
Is this how Google Maps works?
It is the same idea. The ripple is a simple version of what computer scientists call Dijkstra's algorithm. Real map apps add tricks that make it fast enough for millions of roads, and they get news while you drive, such as traffic and closed roads other drivers report, then plan again when something changes.
What does it simplify?
The town is a grid of 8 corners by 6, every road takes a whole number of minutes that never changes, and traffic is a road that always takes 5. The van finds a closed road only when it gets there. Turns take no time, roads go both ways, and nothing happens to the van.
How many levels are there?
Nine. Levels 1 to 8 each show one idea; Level 9 is a town the student builds, where any program can be tested.
Can students share their work?
Yes. A project saves every level's result, the program and the Level 9 town, with a picture of the map. Typed words in a shared project, its name and the program, pass the platform's filter.
Still have a question? Ask us, and a person will write back.
Where to go next
Lesson plans
4 ready-to-teach class periods with a teacher plan, a student worksheet, an exit ticket with answers, and the standards it meets.
Start with Map Robot Lab
Trying it costs nothing and takes about five minutes. An account is what makes the work last.
Map Robot Lab is one of the coding apps on the platform. Every level runs on one model of the town and its roads, so the planner a student uses on Level 4 is the one whose costs they change on Level 5.
Page last reviewed December 2026.
Google, Google Classroom and Chromebook are trademarks of Google LLC.