Schelling's segregation model

Two groups of agents live on a grid. Each agent wants at least some share of its neighbours to be like itself. Anyone below that share moves to a random empty cell. Watch what a mild preference does to the whole neighbourhood.

What to try

  1. Leave the threshold at 50% and press Run. Watch the "similar neighbours" line. Where does it settle?
  2. Reset, set the threshold to 30%, run again. Each agent is content with a minority of similar neighbours. Does the grid still sort?
  3. Set the threshold to 80%. Does the model settle at all? Why might a very strong preference fail to produce a stable pattern?
  4. Keep the seed fixed and change only the density. What does a nearly full grid do to the number of moves per step?
  5. Change the seed. Which of your findings survive a different starting grid, and which were luck?

The rules, exactly