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.
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.
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.
index.html (12063 bytes)Successfully wrote 12063 bytes to index.html
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
EVALUATION
Boid-like triangles with motion trails flock and drift continuously, click causes visible flee/scatter reaction, other inputs show little change.
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.