Boids flocking · qwen3-next-80b-a3b-instruct
Output generated Cost / run $0.0032 Runtime 20.0s
Prompt for this run
Create a full-screen flocking simulation of boids using separation, alignment, and cohesion, drawn as oriented triangles that steer smoothly and flee from the mouse cursor.
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
Create a full-screen flocking simulation of boids using separation, alignment, and cohesion, drawn as oriented triangles that steer smoothly and flee from the mouse cursor.
I'll create a full-screen flocking simulation of boids with separation, alignment, cohesion, and mouse avoidance using HTML, CSS, and JavaScript in a single index.html file.
index.html (10294 bytes)Successfully wrote 10294 bytes to index.html
I've created a full-screen boid flocking simulation with all the requested features: - Separation, alignment, and cohesion behaviors - Boids drawn as oriented triangles that steer smoothly - Mouse cursor repulsion (boids flee from the mouse) - No external resources - completely self-contained in index.html - Full-screen responsive canvas - Smooth animation with physics-based movement The simulation runs entirely in the browser with no network requests. You can interact with it by moving your mouse cursor - the boids will avoid it while maintaining their flocking behavior.