Robot Warehouse Lab
In a big online store's warehouse, the shelves come to the people: small robots drive under a shelf, lift it and carry it to a picker. Robot Warehouse Lab puts students in charge of the robots' program. There is one program, written in Blocks or Python, and every robot runs it once every tick. One robot is easy. Two robots on one aisle lock each other up in seconds, and from there the floor grows to thirty robots, a rush of orders and a whole hour of warehouse time. Each level adds one idea that real fleets need: one-way aisles, taking turns, reserving a square, being fair, how many robots is too many, which order next, batteries, and a planner that looks ahead.
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 Level 2 on the projector and press play. Two robots run the same program that worked on Level 1, and within a few seconds they meet nose to nose in the middle aisle. A red ring goes round them: each is waiting for the other, and neither will move. Ask the class what rule would fix it, without telling either robot about the other. Then drag one arrow onto an aisle to make it one way, and run it again.
Set up a free class Share to Google ClassroomWhat a student actually does
The floor is a grid of 1 meter squares with blocks of shelves, a charger for each robot along the walls, and a picker on the far side. Every tick, a second of warehouse time, every robot asks the student's rule what to do: move toward its target, wait, lift a shelf, set it down. All of them are asked about the same floor, robot 1 first, and then they all move together. Level 1 runs the starter: one robot drives to the blue shelf, lifts it, carries it to the picker, waits 6 ticks while the item is taken, and puts it back, in 50 ticks.
Level 2 runs the same program on two robots, and they meet head on in the middle aisle and lock up. The student drags arrows onto aisles to make them one way, and both orders go out in 57 ticks. Level 3 has six robots and twelve orders: two robots can see the same free square on the same tick and both drive in, so the student adds "it is my turn", where the lower number goes first. Level 4 asks robots to reserve a square before driving into it: they can no longer collide, and they can still wait for each other forever.
Level 5 moves to the big floor with twenty robots and ten minutes of orders. With the lower number first, robot 20 waits 41 ticks in a row at a busy corner: starvation. Letting the robot that has waited longest go first gets 69 orders out with no robot waiting over 30 ticks. Level 6 lets the student choose the fleet, and the Fleet sweep runs the program on 2 to 30 robots and draws the curve: 10 robots get exactly the 100 orders the level asks for, 15 to 25 get about 108, and 30 jam up and lock.
Level 7 has robots pick their own next order. Nearest first gets the most out until a far shelf waits too long; oldest first is fair and falls behind; nearest first unless an order has waited 100 ticks passes with 69. Level 8 adds batteries: a robot that charges too late runs flat with a shelf on its back, and one that charges too early leaves too few orders out. Level 9 has thirty robots, where rules that look one square ahead fall short or deadlock, and "follow the plan" gets 116 orders out with no collision. Level 10 is rush hour, and Level 11 is a whole hour with all of it. A last level, Your floor, lets students paint their own warehouse and test how many robots it takes.
Programs are one function, def step(robot):, that returns one action: robot.move(), robot.wait(), robot.lift(), robot.set_down(), robot.reserve(), robot.take_order("nearest") or robot.charge(), and robot.follow_plan() from Level 9. A rule reads robot.ahead(), floor.free(square), robot.my_turn(), robot.waited(), robot.battery() and the order counts. The Rules tab says the blocks in plain words, and the shift report prints the run, the floor with the squares where robots waited, the fleet sweep and the program.
Level 2, Two robots, one program: the program that worked for one robot locks two of them up. The red ring marks the deadlock the tick it forms.
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 |
|---|---|
| Writes one rule that every robot runs, every tick | Decentralized programs. Each robot decides alone from what it can see. The same rule on many robots behaves differently from the rule on one. |
| Watches two robots lock each other up in the middle aisle | Deadlock. Each one waits for a square the other holds, in a ring. If nobody backs away, nobody ever moves. |
| Sees two robots both find the same square free and both drive in | Race conditions. Two decisions made at the same moment from the same picture of the world can clash. Someone has to go first. |
| Reserves the square ahead before driving into it | Locks and reservations. Holding a square first stops collisions, the way a program locks something before changing it. It does not stop waiting in a ring. |
| Finds robot 20 waiting 41 ticks while lower numbers go first | Starvation and fairness. A fixed priority can leave someone waiting forever. Letting the longest wait go first is called aging. |
| Runs the Fleet sweep from 2 robots to 30 | Throughput and congestion. More workers get more done, up to a point. Past it they get in each other's way, and output falls. |
| Chooses the nearest order or the oldest | Scheduling. Nearest first gets more done and can leave one job waiting for ages. Oldest first is fair and slower. Real systems mix the two. |
| Sends robots home to charge below 30 percent | Planning with a limited resource. Charging too late runs a robot flat, and charging too early wastes working time. The best threshold is found by testing. |
| Switches thirty robots to follow the plan | Path planning. Looking 12 ticks ahead, around the paths other robots have already claimed, beats looking one square ahead. The plans are made in a set order, into one shared table: prioritized planning. |
How to tell whether it landed
Ask, and let them show you on the floor. A student who has understood it can answer these without the app's help.
- The Level 1 program never crashed one robot. Why did it lock up two?
- Both robots saw the square was free, and both drove in. Which of them was wrong?
- On Level 4 robots can no longer collide. Why can they still get stuck?
- Robot 20 waited 41 ticks and nobody broke a rule. What was unfair?
- Why did 30 robots get fewer orders out than 20?
- Your robot ran flat with a shelf on its back. Would charging at 90 percent fix it? What would it cost?
- The planner looks 12 ticks ahead. Why does the robot with the oldest order plan first?
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 6 to 12 (CSTA 2-AP-12, 2-AP-17, 3A-AP-13, 3B-AP-10, 3B-AP-11)
Conditionals and compound conditions, testing and refining a program across levels, deadlock, race conditions, locks, starvation and scheduling, comparing algorithms by results, and a classic planning algorithm, used and compared with local rules.
Math
Rates (orders an hour), reading a curve with a peak, and finding a threshold by testing: the battery level to go home and charge, the wait before an old order goes first.
Technology and society
How the robot warehouses behind next-day delivery work, and that a floor of robots needs rules about fairness as well as speed.
Practical notes
- AgesGrades 6 to 12. Levels 1 to 4 work from grade 6 in Blocks; starvation, the fleet curve and scheduling fit grades 7 to 10; batteries, the planner and the hour-long shift suit high school, in Blocks or Python.
- TimeLevels 1 to 4 take about 30 minutes, Levels 5 to 7 about 40, and Levels 8 to 11 about 45. With talk, three 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 3 once, and read How it works in the Help menu. Each level's card says what to try, and its hint says how.
- In a groupOne floor per student, or pairs: one writes the rule, one predicts where the robots will get stuck before it runs.
For a class with one projector
Open Level 2 and run it at 1 time speed. When the red ring forms, pause and ask the class to name the rule that would have prevented it. Try their answers one at a time: an arrow on one aisle, then "it is my turn" on Level 3. Before each run, ask the class to predict whether any robot will crash, lock up or wait too long, and where.
Common questions
Is it free?
Yes. Robot Warehouse 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. The 3D floor is drawn with WebGL, which Chromebooks have.
Do students need to know how to code?
No. Level 1 runs a starter program, the Blocks tab is drag and drop, and the Rules tab reads the blocks back in plain words. Python is there for students who want it, and the Python tab shows what the blocks say.
Is this how Amazon's robots work?
It is the same idea, much smaller. Robots like these were made by Kiva Systems, which Amazon bought in 2012: they drive under shelves, read a code printed on each floor square to know where they are, and bring the shelf to a person. In real fleets, central computers hand out the jobs and reserve the squares ahead, and each robot plans its own path. This lab starts with every robot deciding alone, to show what has to be solved.
What does it simplify?
Robots move one square a tick and turn instantly. Each shelf goes back to its own square, where real ones park in any empty space. Each robot has its own charger, batteries never wear out, and the picker always takes 6 ticks. Orders come at set times from a seed, so every run of the same program on the same level ends the same way, on every computer.
How many levels are there?
Eleven, and Your floor. Levels 1 to 4 are on a small floor with up to six robots; Levels 5 to 11 are on the big floor with up to thirty, and Level 11 is a whole hour of warehouse time.
Can students share their work?
Yes. A project saves every level's best, the program, the arrows and the painted floor, with a picture of the warehouse. 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
Start with Robot Warehouse Lab
Trying it costs nothing and takes about five minutes. An account is what makes the work last.
Robot Warehouse Lab is one of the coding apps on the platform. Every level runs on one exact model of the floor, so the same program on the same level ends the same way on every computer, in Blocks or Python.
Page last reviewed December 2026.
Google, Google Classroom and Chromebook are trademarks of Google LLC.