oneshotlm
Compare all models on this prompt →

Boids flocking · qwen3-coder-next

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 (11374 bytes)
toolResult

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

assistant

Done! The flocking simulation is ready in `/tmp/ws/index.html`. **Features:** - **150 boids** rendered as oriented triangles - **Three flocking behaviors:** - Separation (boids avoid crowding) - Alignment (boids match neighbors' direction) - Cohesion (boids stay grouped) - **Mouse repulsion** - boids flee when you move the cursor near them - **Smooth steering** using vector-based physics - **Toroidal space** - boids wrap around screen edges - **Dynamic coloring** - hue varies by speed and position - **Trail effect** - slight motion blur - **Visual repulsion radius** indicator when mouse is active Open the file in a browser to see the simulation in action.

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

modelqwen3-coder-next
vendorQwen
harnesspi-agent
generated2026-08-01

EVALUATION

4/5 working

Boids flock and animate continuously as colored triangles, with mouse-repeller circle visible on click/drag/keys.

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 motion6.7%
on click7.1%
on drag7.6%
on wheel7.1%
on enter + space6.2%
on arrow keys6.2%
on w/a/s/d6.7%
frame spread13.3 / 255
console errors0
js errors none

METRICS

runtime32.3s
tokens in518
tokens out2.7k
cached5.4k
cost / run$0.0026