McMurdo42 / Organism

2 stars 1 forks source link

** is used in the death function #4

Closed McMurdo42 closed 2 years ago

McMurdo42 commented 2 years ago

I think that python doesn't run powers that well so there might be a way to optimize this.

McMurdo42 commented 2 years ago

popdensityeffect = (-0.5 * (((2 * (0.01 (alive_organisms - 3000))) - 1) / ((2 * (0.01 (alive_organisms - 3000))) + 1))) + 0.5

McMurdo42 commented 2 years ago

Just moved it outside the function so that it is only run once per cycle.