Creatures - jQuery
The jQuery version of “Creatures”, a simulation of natural selection.
Bubble, World, Universe ... Whatever
Setup | |
For explanation see below | |
Model | |
Seed | |
Match | |
Mutation | |
Range Mutation | |
Max Turns | |
eTurn | |
eMove | |
eCrash | |
locA
locB
locC
locZ
Stats | |
Creatures | |
Species | |
Density % | |
Events | |
Moved | |
Crashed | |
Divided | |
Mutated | |
Died | |
Cause of Death | |
Age | |
Eaten | |
Energy | |
Crash |
Models
1: Actor's locA is compared to Neighbour's locB to determine if actor can see neighbour. Actor's locB is compared to neighbour's locB to determine if neighbour is ally or rival.
2: Actor's locA is compared to Neighbour's locB to determine if actor can see neighbour. Actor's locC is compared to neighbour's locC to determine if neighbour is ally or rival.
3: Actor's locA is compared to Neighbour's locA to determine if actor can see neighbour. Actor's locB is compared to neighbour's locB to determine if neighbour is ally or rival.
4: Actor's locA is compared to Neighbour's locA to determine if actor can see neighbour. Actor's locB is compared to neighbour's locC to determine if neighbour is ally or rival.
Seeds
1: Start with one creature.
2: Start with full house randomly generated creatures.
Matches
A gene is circular and has 256 variants (0 to 255). The distance of two variants is calculate by substraction.
nop: A match occurs only with the same variant.
lin, cos, exp: Probability to match of variants decreases linear, cosinus form or exponential for larger distances.
Mutation
Probability of a mutation in case of a cell division. E.g. 100 means mutation occurs in 1 of 100. If a mutation occurs it is randomly assigned to gene A, B, C or Z.
Range Mutation
Integer from 1 to 128. The range a mutation can shift a variant.
Max Turns
Number of times a cell can be selected for a turn.
eMove, eCrash, eTurn
The energy cost each of these events has for the acting cell.
Comments
Send any comments or bug reports by email to karlheinz@gmail.com. Include "Creatures Script" in the subject. Thanks.