Parable of the Polygons – Interactive Simulation by mathematician vihart and programmer nicky case

This interactive social simulation using canvas will get you thinking


This is a story of how harmless choices can make a harmful world.

These little cuties are 50% Triangles, 50% Squares, and 100% slightly shapist. But only slightly! In fact, every polygon prefers being in a diverse crowd.

You can only move them if they’re unhappy with their immediate neighborhood. Once they’re OK where they are, you can’t move them until they’re unhappy with their neighbors again. They’ve got one, simple rule:

“I wanna move if less than 1/3 of my neighbors are like me.”

Try it outat Parable of the Polygons