Skip to algorithm editor
sims//warehouse.js

Warehouse Algorithm

Fulfill incoming orders quickly with a fleet of warehouse robots. Robots need to collect the right items, deliver them, and share the aisles without wasting trips.

Your algorithm assigns work and routes the robots. Try improving task allocation, travel paths, and coordination as orders arrive.

How to use it

  1. Open warehouse.js and choose a stock algorithm from the dropdown. Run it once to see how it behaves before changing the code.
  2. Use Run below the preview to start the simulation. Pause to inspect it, step forward one tick at a time, or reset to start over. The speed slider changes how fast you watch the run.
  3. Edit the JavaScript in the file tab. Open reference.md for the algorithm API, or Settings to change the scenario. Use the same seed when comparing two approaches: it recreates the same setup.
  4. Click Test 100 seeds to check more than one scenario. The Benchmarks panel shows progress and results; the Output panel helps you inspect what happened.
  5. When you are happy with your algorithm, click Submit algorithm to score it against 1,000 canonical seeds. Open the Leaderboard to compare submissions.

What makes a good result?

Lower fulfillment scores are better. The score adds up the time orders spend waiting to be completed, including orders left unfinished at the end of the run.

Work with an agent

Open the Agent tab to connect an AI coding agent. Copy the provided prompt into your agent so it can help edit the algorithm, run experiments, and inspect results in this browser.

Preview4 robots · 20 × 14 · seed 42
Seed
42
Elapsed
0ticks
Fulfilled
0
Pending orders
0
Average time
0ticks
Building the warehouse…
0ticks
QuickJS sandbox

Activity

0
  1. Events appear here once the simulation runs