Maze generator & solver · mimo-v2.5
Generate a random maze with the recursive-backtracker algorithm on a canvas, then animate an A-star or BFS solver finding the path from start to finish.
transcript · 4 messages
Generate a random maze with the recursive-backtracker algorithm on a canvas, then animate an A-star or BFS solver finding the path from start to finish.
thinking
The user wants me to create a single-page web app that: 1. Generates a random maze using the recursive backtracker algorithm 2. Displays it on a canvas 3. Animates a pathfinding algorithm (A* or BFS) solving the maze from start to finish All in one self-contained `index.html` file with inline CSS and JS, no external resources. Let me build this out with nice visuals and smooth animations.
/workspace/index.html (12934 bytes)Successfully wrote 12934 bytes to /workspace/index.html
thinking
The file is written. Let me verify it exists and looks good.
The maze app is ready at `/workspace/index.html`. Here's what it does: **Maze Generation** - Uses the **recursive backtracker** (iterative stack-based DFS) to carve a perfect maze — every cell is reachable, no loops - Walls are drawn as line segments per-cell on a canvas **Pathfinding Solvers** - **A*** — weighted by Manhattan distance heuristic, greedy + optimal - **BFS** — unweighted breadth-first guarantee **Animation** - Explored cells light up blue, frontier (open set) pulses orange, final path glows purple - Speed control: Slow → Medium → Fast → Instant (just shows the result) - Stats show nodes explored, path length, and timing after completion **Controls** | Button | Action | |---|---| | **Generate & Solve** | New maze + immediate solve | | **New Maze** | Just regenerate | | **Solve Only** | Re-run solver on current maze | | **Reset** | Clear solver visualization | You can also tweak the **width/height** (5–80 cols, 5–60 rows), pick **A* or BFS**, and adjust speed before solving.
TAKE IT TO CODE
A single self-contained HTML file — copy it and open in any browser, or reuse the prompt with your own pi-agent run.
RUN
EVALUATION
Maze renders but solver never runs; requires clicking 'Generate & Solve' button which the probe never targeted, no animation or path shown.
Vision grade · anthropic/claude-sonnet-5
MEASUREMENTS
Raw readings from the capture, not a verdict — the grade above is the only judgement. Percentages are how much of the screen changed; the measure under-reports sparse motion on a dark background.