You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a terrain.
We need to seed the terrain.
Once the plants exist:
We need plants to either survive or not survive
if(they survive)
we want them to possibly reproduce
if(they do reproduce)
we want them to compete
if(the new plant wins)
we want to return the updated matrix
if(the original plant wins)
we want to return the original matrix
...am I missing anything big? I think the hard part about filling this in with real code will be creating the right kind of objects to store variables and what not.
The text was updated successfully, but these errors were encountered:
Everything from the second pargraph onwards is going to be in the plant.timestep function. This is something that will be called multiple
times (once for each iteration!). Hence it's a separate function from the
overall function (called run.ecosystem) that takes in a terrain, seeds it
with plants, and then iteratively calls plant.timestep. Make sense?
We have a terrain.
We need to seed the terrain.
Once the plants exist:
We need plants to either survive or not survive
if(they survive)
we want them to possibly reproduce
if(they do reproduce)
we want them to compete
if(the new plant wins)
we want to return the updated matrix
if(the original plant wins)
we want to return the original matrix
...am I missing anything big? I think the hard part about filling this in
with real code will be creating the right kind of objects to store
variables and what not.
@willpearse
We have a terrain.
We need to seed the terrain.
Once the plants exist:
We need plants to either survive or not survive
if(they survive)
we want them to possibly reproduce
if(they do reproduce)
we want them to compete
if(the new plant wins)
we want to return the updated matrix
if(the original plant wins)
we want to return the original matrix
...am I missing anything big? I think the hard part about filling this in with real code will be creating the right kind of objects to store variables and what not.
The text was updated successfully, but these errors were encountered: