Creatures P5.js Version 1
Each cycle, a large number of randomly selected creatures is processed one after the other. Offsprings will occupy an empty cell around the parent.
This version is too slow. It takes too long until allele frequecy are settled based on the selected perception model. For a faster variant check Version 2.
Bubble, World, Universe ... Whatever
Species Creatures
locA
locB
locC
locZ
Controls
Mutation Rate 1/
100 10k
Crossover Rate 1/
100 10k
Perception
1 4
Polarization
+ -
Perception
- Always
- locA vs locA'
- locA vs locB'
- locA vs locC'
If a creature can see a neighbour, locC determines if it is an ally or a rival.
Polarization
With a positive polarization, a creature gains energy by having allies around and loses energy by having rivals around. With a negative polarization, the effect is reverse.