Boids flocking · mistral-medium-3.1
Output generated Cost / run $0.0073 Runtime 28.9s
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.
index.html (14405 bytes)Successfully wrote 14405 bytes to index.html
Created a self-contained, full-screen flocking simulation in `index.html` with: - **Boids** (150) as oriented triangles with trails - **Flocking behaviors**: separation, alignment, cohesion - **Mouse interaction**: boids flee from cursor - **Visuals**: smooth steering, trails, full-screen canvas - **No dependencies**: pure HTML/CSS/JS, no external resources Open `index.html` in a browser to run. Use your mouse to interact with the boids.