A 2D Turing machine: each ant reads the cell color, writes a new one, turns and steps. Simple rules, unbounded grid.
Many ants, one shared memory: pheromone trails that evaporate. Foraging, recruitment, castes and rival colonies emerge from local rules.
Scenario
Analytics
Castes and ledger
workersscoutssoldiers
Tools
Block a trail with a wall, or drop food somewhere new, and watch the colony re-route. Two fingers still pan and zoom while a tool is active.
Behavior
Changes apply to the running colony. Fast evaporation forgets routes quickly; slow evaporation locks the colony onto old ones.
Layers
How it works
- Two pheromones. Searching ants lay a home scent, strongest near the nest. Ants carrying food lay a trail scent, strongest near the food. Each kind of ant follows the other scent.
- Positive feedback. A trail that leads to food gets walked, and so reinforced. Shorter routes are completed sooner and reinforced faster; evaporation erases the rest.
- Castes. Workers forage. Scouts wander widely and follow trails loosely, so new food is found. Soldiers follow the alarm scent to fights.
- Economy. Delivered food is stored, eaten, and spent on new ants. A colony short of income raises more scouts; one under attack raises more soldiers.
- Death. Ants starve, age, or fall in combat. A corpse becomes food.