[P2 | 8h] Create a complex world #4
Labels
--world-ga
[ingenious] Worlds / GA (generic algorithms)
enhancement
New feature or request
invalid
This doesn't seem right
NOTE: This world probably won't be useful for actual straightforward evolution. It's mostly just for fun, hence the low priority.
Organism constants (DNA-defined)
g
- [0; 1)) - male organisms choosing female ones, after which female ones filter them outdouble
in the [0; 1) range. Every generation all organisms pick a temporary effective gender - male, female or asexual. The chance, if the gender coefficient isg
, is as follows:Math.max(0.5 - g, 0.0)
-- chooses males based on their resources/fitness; receives resources from the chosen males but when giving birth, loses a preset part of her resources; doesn't know how much the males give,Math.max(g - 0.5, 0.0)
-- chooses females based on their fitness; gives resources to the ones who choose him1.0 - Math.abs(0.5 - g)
)r
- (0; 1]) - every generation a set amount is given away and spread across the organisms, with the fittest ones receiving the most resources; an organism with 0 food dies; studying (training its neural network, etc.) costs resources. Any resources greater than 1.0 at the end of a generation are cut down to 1.0.c
- [0; 1)). This one has 2 applications:s
- [0; 1)) - how much of their resources an organism is willing to spend for studying each generationp
- [0; 1)) - what ratio of the available mates an organism would chooseWorld constants
H
- [0; 1)) - the amount of resources taken away from every organism (indiscriminately) each generationN
- natural number) - the average number of organisms. The resources given away each generation are equal toh * n
. The number of organisms can go up or down but they should balance out aroundn
S
- big natural number, e.g. 1 000 000) - the max number of computations an organism is allowed to make. The price of x computations is equal tox / S
. Every generation an organism decides to allocater * s
resources for studying. If one studying iteration consists of x computations, then the organism will make(r * s) / (x / S)
studying iterations. Any leftover resources remain in the organism.TODO: Figure out how to make resource distribution fair. Another world constant may be necessary for this.
The text was updated successfully, but these errors were encountered: