A simple CAS example

Try out this complex adaptive system for yourself. Experiment with different settings to see how small changes in the initial conditions change the way the simulation plays out.

How this works:

  • Agents follow a few simple rules to determine their behavior.
  • Each agent has a unique "DNA" that determines it's characteristics. This is a 24-digit array, where each digit is 1 to 4.
  • An agent's DNA is passed on to it's children, and enables relatives to recognize one another. Related agents will not fight each other.
  • Agents each have "hit points" that determine it's size and relative health. Hit points can be gained by eating food, or by fighting.
  • An agent must eat six foods before it can reproduce. When an agent dies, either in combat, or from old age, six foods are placed randomly in the universe.