Commit Graph

9 Commits (main)

Author SHA1 Message Date
Michael Brehm 4d24b75f30 small bugfix. forgot to add optimize 2024-06-27 00:22:20 +02:00
Michael Brehm e0de107bda fix small bug 2024-06-23 20:53:20 +02:00
Michael Brehm 28712d3a7c combine score into one. add some documentation. add energy_threshold to prevent overfeeding 2024-06-23 20:21:52 +02:00
Daniel Philipp f88891f3e3 Flood improved
Scenarios created
Readme updated
2024-06-23 18:29:04 +02:00
Daniel Philipp c4a202d68b countdown replaced by growth to count up and fix grass colors
event winter added
events improved
2024-06-23 02:16:55 +02:00
Michael Brehm 5b6891bdd8 fixed updating model parameters with GLMakie 2024-06-20 21:14:37 +02:00
Michael Brehm 2906c96aa4 fix movement, but updating model parameters with GLMakie broken 2024-06-20 20:47:23 +02:00
Michael Brehm fbf2453ccd convert animal parameters to model parameters to make them adjustable in GLMakie 2024-06-20 15:04:24 +02:00
Michael Brehm 78552bb044 implement AnimalDefinitions in new model
* animals can be defined through AnimalDefinitions. So multiple prey/predator types are possible
* Δenergy now decides how much energy the predator gets when the animal is preyed on. It does nothing on predators that have no enemies
* added some metrics through death_cause field to see how much prey dies through starvation/predation
* predator and prey now use the same functions
* currently its not possible to change the animal parameters through the interactive app
* implemented an energy_threshold so animals only reproduce when they have enough energy. Leads to less animals starving
* implemented new movement logic. Now animals score each neighboring cell based on distance to food and danger. Prevents prey from running into predators

TODO:
generate the parameter dict for the model so animal parameters can be changed during simulation
combine danger and foodscore into one
check for occupied cells so they are not scored/chosen
2024-06-20 11:51:20 +02:00