Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

Warehouse robot traffic

Send warehouse robots to the shelves and packing stations: watch shortest paths crash, then plan them together in space and time so they wait and dodge instead.

How to use

  1. Choose how many robots and a layout number, then press New jobs. Each robot leaves its dock (bottom), drives to its pick-up spot next to a shelf (square outline in its colour), then to its own packing station (top, marked with its number).
  2. Show Each on its own: every robot takes its shortest route as if it were alone. Press Play: red rings mark crashes, where two robots meet in one cell or swap places.
  3. Show Planned together: the robots are planned one after another, each avoiding the cells and moves already booked. Nobody crashes, at the price of some waiting.
  4. Change who is planned first and compare the table: total moves, waiting and the time until the last robot is done.

Keyboard and touch

TabMove between the controls
Enter in a boxMake new jobs
Step back / Step onMove through time one step at a time

Tips

  • With two or three robots the shortest paths rarely meet. Crashes grow fast as the aisles fill up.
  • Planning the longest trips first often helps them finish sooner, but not always: compare the two orders on a few layouts.
  • A waiting robot is not wasted time for the warehouse: it is what lets everyone else get through the narrow aisles.

About this tool

The warehouse is a grid; a robot moves one cell up, down, left or right per step, or waits. Each on its own uses breadth-first search for the shortest route, dock to pick-up to station. Planned together is prioritized planning, a standard method for many robots. Robots are planned one at a time with A* search over cells and time steps, guided by the distance still to go. A booking table stops a robot from entering a cell someone holds at that time, or swapping places with a robot head-on. A robot that has reached its station keeps it booked from then on. Other robots' docks and stations are dead ends nobody else enters. Real warehouse fleets use faster and smarter versions of the same idea. A separately written Python checker replays every plan: legal moves only, the pick-up visited, the right station reached, no crashes, and every route at least as long as the shortest one. Everything runs in your browser.

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product