Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scaffolding #1

Open
jenessalemon opened this issue Nov 9, 2016 · 1 comment
Open

Scaffolding #1

jenessalemon opened this issue Nov 9, 2016 · 1 comment

Comments

@jenessalemon
Copy link
Collaborator

@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.

@willpearse
Copy link
Member

Looking good. You're missing one thing though.

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?

On Wed, 9 Nov 2016 at 17:56 jenessalemon notifications@github.com wrote:

@willpearse https://github.com/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.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#1, or mute the
thread
https://github.com/notifications/unsubscribe-auth/ABLcUiQ_giAqIN8zE5mo2O-NH3pAV7Rcks5q8glcgaJpZM4Ktzx0
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants