Creatures P5.js Version 3
Each cycle, a number of randomly selected creatures' fitness is analyzed. The updated creatures are modified in a clone of the current map which at the end of the cycle replaces the current map.
Mutation Rate 1/
Crossover Rate 1/
- 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.
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.