The model
There’s only one kind of agent that matters: a particle with two shapes.
- moving (white): a particle that’s still wandering.
- stopped (green): a particle that has joined the cluster and will never move again.
To start, paint the world with a background agent, scatter many moving particles across it, and place one stopped particle in the center as the seed.
The particle’s rules

Read each rule as a sentence:
- If I’m moving and at least one stopped particle is next to me, then I stop.
- Otherwise, if I’m moving, then I take one random step onto the background.
A stopped particle matches neither rule, so it does nothing. That’s the whole model: a random walk, plus “stick when you touch the cluster.”
Compare this with Meet AgentCubes. The rules have almost the same shape: “next to a sick person, become sick” is now “next to a stopped particle, stop.” The only difference is that a sick person kept moving, and a stopped particle doesn’t.
The controller

A separate controller agent counts the particles of each shape every tick and plots the counts. On the plot, green means moving and red means stopped, which is the opposite of the colors in the world, so read the legend.
What happens


The cluster isn’t a blob. It grows thin, branching arms, like frost on a window or a snowflake. How did your sketch compare?
Why branches?
A particle wandering in from far away is much more likely to bump into the tip of an arm, which sticks out toward it, than to wander deep into a gap between two arms without touching either side first. So the tips keep catching particles and growing, and the gaps stay empty. Small bumps get bigger, and the cluster branches.
Nobody wrote “make branches” anywhere in the rules. Like the fire’s tipping point and the outbreak in a crowd, the shape emerges from simple local rules.
This model is called diffusion-limited aggregation. Scientists use it to describe real patterns that grow this way, including mineral deposits, frost, lightning-like electrical discharge, and some bacterial colonies.
Reading the plot
- Why does the number of stopped particles climb slowly at first?
- Is the red line straight, or does it bend as the cluster gets bigger? What would make the cluster grow faster later on?
- Will every particle eventually stop? What would have to happen for the green line to reach 0?
Try it
Change one thing at a time and run it again:
- Fewer particles. Start with half as many moving particles. Does the cluster grow as quickly? Does it look different?
- Less sticky. Add
percent-chance 25to the first rule, so a particle sticks only some of the time when it touches the cluster. Do the arms get thicker or thinner? Why? - A different seed. Instead of one stopped particle in the center, paint a whole row of stopped particles along the bottom edge. What grows from a line?