Boids flocking · mistral-large-2512
Output generated Cost / run $0.0057 Runtime 31.1s
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.
/tmp/ws/index.html (9937 bytes)Successfully wrote 9937 bytes to /tmp/ws/index.html
The flocking simulation of boids is ready! Open `/tmp/ws/index.html` in a web browser to see: - **150 boids** (blue triangles) flying in a flock - **Flocking behaviors**: separation, alignment, and cohesion - **Mouse interaction**: boids flee from the cursor - **Edge wrapping**: boids reappear on the opposite side when they exit the screen - **Smooth steering**: boids orient themselves in the direction of movement The file is fully self-contained with no external dependencies. Refresh the page to restart the simulation.