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
- Open warehouse.js and choose a stock algorithm from the dropdown. Run it once to see how it behaves before changing the code.
- 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.
- 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.
- 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.
- 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.