oneshotlm
Compare all models on this prompt →

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

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

I'll create a full-screen flocking simulation of boids using separation, alignment, and cohesion with smooth steering and mouse fleeing. All code will be in a single self-contained HTML file.

→ write index.html (12063 bytes)
toolResult

Successfully wrote 12063 bytes to index.html

assistant

I've created a full-screen flocking simulation of boids with all the requested features: - Separation, alignment, and cohesion behaviors for realistic flocking - Boids drawn as oriented triangles that rotate based on their velocity - Smooth steering through velocity and acceleration calculations - Mouse cursor fleeing behavior where boids flee from the mouse - Edge wrapping so boids don't leave the screen - Responsive design that works on any screen size - Visual enhancements with gradients and highlights for the boids The simulation runs in a single self-contained HTML file with no external dependencies. Simply open the file in any modern browser to see the boids flocking and reacting to your mouse movement.

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

METRICS

runtime14.5s
tokens in5.6k
tokens out2.8k
cached2.1k
cost / run$0.0007