3 ms·
This is similar to a common experiment you can program. Create a grid, and fill it about 95% full with random black and white squares, leaving about 5% empty.
by Animats 12y ago
This is similar to a common experiment you can program. Create a grid, and fill it about 95% full with random black and white squares, leaving about 5% empty. Each square has 8 neighbors. If a square at least N neighbors of a different color, it moves to a randomly selected empty square. Iterate this for a while, until stability occurs.
You're watching segregation happen. Try different values of N. Even with N=8, meaning nobody moves unless every neighbor is the opposite color, you'll still get a mostly segregated world.