Interactive Playground
Robot Recipe
The robot chef does exactly what your recipe says — nothing more, nothing less. Read the customer's order, write the recipe in the right order, and press Run. If the sandwich comes out wrong, debug your recipe!
📋 Customer order (bottom to top)
Write your recipe, then press Run.
Add take() steps in the order the sandwich stacks.
The first take() is the bottom layer. Build the order exactly.
- Tap ingredients to build your recipe.
Type your recipe with real JavaScript. Loops welcome for double orders!
Commands you can use
take("bread");
take("ham");
take("cheese");
take("lettuce");
take("tomato");
take("bacon");
take("pickle");
take("ketchup");
// loops work too:
for (let i = 1; i <= 2; i++) {
take("ham");
}
The robot follows your recipe exactly — plan the whole stack.