Maze generator & solver · qwen3-vl-32b-instruct
Output generated Cost / run $0.0025 Runtime 73.0s
Prompt for this run
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.
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
METRICS
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.
index.html (14426 bytes)Successfully wrote 14426 bytes to index.html
I've created a single-page web application that generates a random maze using the recursive backtracker algorithm and animates pathfinding using both A* and BFS algorithms. The app includes: - A canvas displaying the maze - Buttons to generate a new maze, solve with A*, solve with BFS, or reset - Visual feedback showing the solving process - Color-coded cells for start (blue), end (purple), current position (orange), visited cells (yellow), and the final path (green) The entire application is self-contained in index.html with inline CSS and JavaScript, requiring no external resources or network requests. You can now open index.html in any modern browser to interact with the maze generator and pathfinder.