people:chris_symonds:model
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
people:chris_symonds:model [2014/11/16 16:08] – [Model Description] csymonds | people:chris_symonds:model [2014/11/16 23:07] (current) – [Figure 1] csymonds | ||
---|---|---|---|
Line 32: | Line 32: | ||
At the beginning of an event, a Sytizen will first pay a metabolism cost of 1 energy. If this depletes the energy to 0, the Sytizen is removed and the event ended. The neighborhood of the Sytizen is then scanned, and the location and type of any Element or empty space is recorded within a Manhattan distance of four. The Sytizen will then consume one neighboring RES within two Manhattan distance from them. A consumed RES bestows 10 energy on the Sytizen. Then, any genetic-specific behavior is performed as described above. | At the beginning of an event, a Sytizen will first pay a metabolism cost of 1 energy. If this depletes the energy to 0, the Sytizen is removed and the event ended. The neighborhood of the Sytizen is then scanned, and the location and type of any Element or empty space is recorded within a Manhattan distance of four. The Sytizen will then consume one neighboring RES within two Manhattan distance from them. A consumed RES bestows 10 energy on the Sytizen. Then, any genetic-specific behavior is performed as described above. | ||
- | If the Sytizen is still alive and their total energy is greater than 30, they will attempt to procreate. Any in-group members within a Manhattan distance of four are sorted by energy. If the highest energy amount is greater than 40 RES, that Sytizen is selected to breed. If an empty location is available, an offspring will appear with a starting energy of 20, and the energy of each parent reduced by 10. The offspring will inherit one of the parent' | + | If the Sytizen is still alive and their total energy is greater than 30, they will attempt to procreate. Any in-group members within a Manhattan distance of four are sorted by energy. If the highest energy amount is greater than 40 RES, that Sytizen is selected to breed. If an empty location is available, an offspring will appear with a starting energy of 20, and the energy of each parent reduced by 10. The offspring will inherit one of the parent' |
Finally, the Sytizen engages in movement. All Sytizens are movement-biased towards any RES visible to them in a given event. The normalized locations of any RES within manhattan distance four are summed, and a vector is determined from the average of those locations. They take a single step, and the event is concluded. | Finally, the Sytizen engages in movement. All Sytizens are movement-biased towards any RES visible to them in a given event. The normalized locations of any RES within manhattan distance four are summed, and a vector is determined from the average of those locations. They take a single step, and the event is concluded. | ||
Line 42: | Line 42: | ||
=====Figure 1===== | =====Figure 1===== | ||
- | {{: | + | {{: |
people/chris_symonds/model.1416154092.txt.gz · Last modified: 2014/11/16 16:08 by csymonds