← All experiments

Program a Roomba

Queue a few commands. Navigate the room. Learn why a tiny robot still needs a good plan.

Roomba room. Rows and columns start at 1.
Row 1, column 1: Empty Row 1, column 2: Dirt Row 1, column 3: Empty Row 1, column 4: Dirt Row 1, column 5: Empty Row 1, column 6: Empty
Row 2, column 1: Empty Row 2, column 2: Empty Row 2, column 3: Wall Row 2, column 4: Empty Row 2, column 5: Empty Row 2, column 6: Empty
Row 3, column 1: Empty Row 3, column 2: Empty Row 3, column 3: Wall Row 3, column 4: Empty Row 3, column 5: Empty Row 3, column 6: Dirt
Row 4, column 1: Empty Row 4, column 2: Empty Row 4, column 3: Empty Row 4, column 4: Dirt Row 4, column 5: Wall Row 4, column 6: Empty
Row 5, column 1: Empty Row 5, column 2: Wall Row 5, column 3: Empty Row 5, column 4: Empty Row 5, column 5: Empty Row 5, column 6: Empty
Row 6, column 1: Empty Row 6, column 2: Empty Row 6, column 3: Dirt Row 6, column 4: Empty Row 6, column 5: Empty Row 6, column 6: Empty

The arrow is your robot. Dark squares are walls. Clean all five dirt squares.

Your program

Append commands, then step through them or run the whole queue. Limit: 30 commands.

    No commands yet. Start with Forward.

    Enable JavaScript to program the robot.

    The project behind the experiment

    A multiplayer browser game that turns a simple Roomba interview prompt into a realtime 3D arena with procedural terrain, enemies, and benchmark tooling.

    Explore Roomba Wars →