oneshotlm
Compare all models on this prompt →

Boids flocking · ministral-3b-2512

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.

⛨ sandboxed Open in new tab ↗
transcript · 4 messages
user

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.

assistant
write /tmp/ws/index.html (11931 bytes)
toolResult

Successfully wrote 11931 bytes to /tmp/ws/index.html

assistant

Here’s your fully self-contained single-page web app for a boid flocking simulation with oriented triangles, separation, alignment, cohesion, and mouse-fleeing behavior: ### Key Features: 1. **Full-screen canvas** with responsive design 2. **Oriented triangles** that smoothly steer toward/from mouse 3. **Physics-based flocking**: - Separation (avoid crowding) - Alignment (match direction) - Cohesion (group toward center) - Fleeing (avoid mouse cursor) 4. **Visual feedback**: - Speed-dependent color gradients - Dynamic triangle orientation 5. **Real-time updates** with `requestAnimationFrame` ### How to Use: 1. Save the file as `index.html` 2. Open in any modern browser 3. Move your mouse to see boids flee The simulation runs entirely client-side with no external dependencies. The triangles dynamically orient based on each boid's velocity vector.

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

modelministral-3b-2512
vendorMistral AI
harnesspi-agent
generated2026-08-01

EVALUATION

1/5 broken

Blank black screen throughout; only faint title text visible, JS error crashed boid rendering.

off-prompt

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.

idle motion0.0%
on click0.0%
on drag0.0%
on wheel0.0%
on enter + space0.0%
on arrow keys0.0%
on w/a/s/d0.0%
frame spread2.5 / 255
console errors0
js errors
  • Cannot read properties of undefined (reading 'clientX')

METRICS

runtime20.3s
tokens in5.9k
tokens out3.2k
cached4.0k
cost / run$0.0006