oneshotlm
Compare all models on this prompt →

Boids flocking · qwen3-coder-30b-a3b-instruct

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

# Flocking Simulation with Boids I'll create a full-screen flocking simulation with boids that exhibit separation, alignment, and cohesion behaviors, with smooth steering and mouse avoidance.

write index.html (18249 bytes)
toolResult

Successfully wrote 18249 bytes to index.html

assistant

I've successfully created a full-screen flocking simulation with boids that exhibit separation, alignment, and cohesion behaviors. The simulation features: 1. **Smooth Steering**: Boids move with velocity-based physics and smooth orientation changes 2. **Flocking Behaviors**: - Separation: Avoid crowding neighbors - Alignment: Steer towards average heading of neighbors - Cohesion: Move towards average position of neighbors 3. **Mouse Interaction**: Boids flee from the mouse cursor 4. **Visual Design**: - Attractive gradient background - Colorful triangular boids that orient based on their velocity - Semi-transparent trails for a smooth visual effect - Control panel with statistics and buttons 5. **Interactive Controls**: - "Add Boids" button to increase the flock size - "Reset" button to restart the simulation 6. **Responsive Design**: Adjusts to any screen size 7. **Performance Optimized**: Efficient algorithm with proper force limiting The boids are drawn as oriented triangles that smoothly transition their orientation based on velocity, creating a visually appealing flocking effect. They maintain separation, align with neighbors, and cohere towards group centers while avoiding the mouse cursor. All code is contained in a single HTML file with no external dependencies.

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-30b-a3b-instruct
vendorQwen
harnesspi-agent
generated2026-08-01

EVALUATION

3/5 working

Boids flock with trailing motion but appear as smeared blobs rather than clear oriented triangles; animates continuously, mouse cursor circle visible but flocking clusters look messy.

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 motion9.1%
on click7.6%
on drag7.6%
on wheel6.9%
on enter + space7.3%
on arrow keys8.2%
on w/a/s/d8.7%
frame spread18.7 / 255
console errors0
js errors none

METRICS

runtime113.1s
tokens in7.2k
tokens out4.1k
cached0
cost / run$0.0016