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
Put this on your class site

Students can use Map Robot Lab right on your page, with no account. What they make stays on that page; to keep their work, they make a free account.

Google Sites: Insert, then Embed, then By URL, and paste this address.

https://mytekdev.com/try/maprobotlab?embed=1

Canvas, a blog, or any page that takes HTML: paste this code where you edit the page as HTML.

<iframe src="https://mytekdev.com/try/maprobotlab?embed=1" width="100%" height="640" style="border:0" allow="fullscreen" title="Map Robot Lab demo from mytekDev"></iframe>

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.

The planner is the same on every level. Students never write it: they call it, and from Level 5 they write the cost function it calls for each road. What changes from level to level is what a road costs and when the van plans.

A first period

Levels 1 to 4 fit in a period, with time to talk about why heading for the goal got stuck.

  1. 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?
  2. 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.
  3. 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.
  4. 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.

LevelThe jobWhat it is built to show
1. Press playRun the starter to the BakeryA program is a list of directions: east, east, south, 3 blocks in 6 minutes
2. Drive it yourselfWrite directions to the Pizza PlaceTwo ways are 3 blocks; north on the green avenue first takes 4 minutes, the other 6
3. Head for the goalOne program for three deliveriesA loop with conditionals: drive whichever way the goal is (Pizza Place 3 blocks, Bakery 3, Zoo 8)
4. The lakeGet to the Library, across townHeading for the goal gets stuck at the lake; the ripple planner finds 11 blocks (33 minutes)
5. Fewest blocks isn't fastestThe Theater in 10 minutes or lessCost decides best: 7 blocks take 24 minutes on Main Street; a cost of minutes finds 9 blocks in 10
6. Road closedGet to the Hospital past a closed road nobody knows aboutA plan made at the start drives into the closure; planning after every block arrives in 12 blocks, 18 minutes
7. Quiet streetsThe Hospital at 3 pm without passing the schoolMinutes plus 10 on a school road: 14 blocks, 14 minutes, no school roads, where the fastest is 10 minutes past the school
8. Three deliveriesThe Zoo, the Pizza Place and the Library in 18 minutes or lessThe job list's order takes 31 minutes; closest next takes 18, the best of all six orders here
9. Your townBuild a town, then deliver to every stopTesting 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 thinkWhere the app answers it
Shortest means fewest blocksLevel 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 arrivingLevel 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 enoughLevel 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 routeLevels 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 wayLevel 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 costStep 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

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

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.