Ecosystem Sim

For discussions about game development that does not fit in any of the other topics.
Post Reply
User avatar
Xaos
Posts: 940
Joined: Wed Jan 11, 2012 4:01 am

Ecosystem Sim

Post by Xaos »

So i'm going to be coding an ecosystem success simulator for my science fair project, where it will account for some different variables, all on a 1-10 scale but two. For the other two, one would be selecting which climate out of 5 choices, and the other entering how many competing species there are. So I'm kinda nooby on coding things my own, but I'm thinking of using javascript for this, so it can be used in a browser easily. So how should I lay this out? I was thinking, for the 1-10 values, simply add 1 point, and if I decide there are some more important than others, put a weight on it. For the climate types, just assign a integer value to each one and it gives points for which one clicked (IE one would be 2 points, the other 4, etc.)

Thoughts? Is this a flawed system? Is there a better way?
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: Ecosystem Sim

Post by Jackolantern »

It sounds pretty good to me and I don't see any flaws in it :)
The indelible lord of tl;dr
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Ecosystem Sim

Post by hallsofvallhalla »

Sounds very kewl and makes a great science project.
User avatar
Xaos
Posts: 940
Joined: Wed Jan 11, 2012 4:01 am

Re: Ecosystem Sim

Post by Xaos »

Thanks guys :D
User avatar
Callan S.
Posts: 2042
Joined: Sun Jan 24, 2010 5:43 am

Re: Ecosystem Sim

Post by Callan S. »

This is me, but what's the resolution method? Gamble/luck (which is pretty Darwinistic, granted)?

I guess it's hard to build something complex enough that one can't really be certain of the outcome. But do the variables put in matter - or have you already decided some species just survive if you put in certain values and others don't?
User avatar
Xaos
Posts: 940
Joined: Wed Jan 11, 2012 4:01 am

Re: Ecosystem Sim

Post by Xaos »

Callan S. wrote:This is me, but what's the resolution method? Gamble/luck (which is pretty Darwinistic, granted)?

I guess it's hard to build something complex enough that one can't really be certain of the outcome. But do the variables put in matter - or have you already decided some species just survive if you put in certain values and others don't?
It'll take into the account the variables put in, and then there may be some randomness in generating the percent. IE if there's an arid climate, with no water source, regardless of everything else you'll have low success rate. There may be some randomness in putting out the actual %, but the general will be the same. I'll probably use thresholds, maybe something else if I think of it or if anyone else has a suggestion.
Post Reply

Return to “General Development”