This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

felagund
felagund presents ...

2016/2/2

Wildlife Simulation

Wildlife Simulation

There are 4 creatures and 3 plants in this simulation. each life form ages, reproduces and dies. The object of the simulation is, have the life form survive until age 2000.

1. Bear
2. Weasel
3. Camel
4. Mouse

5. Seed
6. Tree
7. Vegetable

~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~

1. Bear
- type: carnivore
- feeds: camel
- normal speed: 3
- max age ~ 500
- starvation limit: 20
- sense: 150px
- saturation: 15
* advantage: hunting speed: +2 (if a prey in its sense range gains +2 speed)

2. Weasel
- type: carnivore
- feeds: mouse
- normal speed: 4
- max age ~ 350
- starvation limit: 20
- sense: 150px
- saturation: 6
* advantage: hungry speed: +2 (if its hungry above %50 gains +2 speed)

3. Camel
- type: herbivore
- feeds: vegetable
- normal speed: 4
- max age ~ 500
- starvation limit: 24
- sense: 100px
- saturation: 15
* advantage: starvation limit +4

4. Mouse
- type: herbivore
- feeds: seeds
- normal speed: 6
- max age ~ 350
- starvation limit: 20
- sense: 100px
- saturation: 4
* advantage: runs away from carnivores

5. Seed
- type: plant
- max age ~ 200
- saturation: 4
* advantage: can reproduce up to 5 children

6. Tree
- type: plant
- max age ~ 1000
- saturation: 15
* advantage: has a very long life span.

7. Vegetable
- type: plant
- max age ~ 600
- saturation: 8
* advantage: has the second longest life span

Notes about the simulation:
----------------------------------
* Every creature can only reproduce once.
* Every creature hungers, hunts, tries to reproduce, ages and dies.
* If a creature passes the starvation limit, it dies.
* When hunting, a creature tracks nearby prey within its range of awareness. (sense)
* If a creature is not hungry (<%25), it does not hunt. this algorithm was added to preserve the population.
* If a creature is too old (>%90), its speed becomes 2. this algorithm was added to protect the younglings.
* If a creature is not very hungry (<%50) and if it has fed at least 3 times, it reproduces.
* Creatures randomly wander and bounce between borders.
* All life forms are randomly scattered every time the simulation is started.
* Number of creature's offspring is calculated with the formula: 1000/max_age_of_creature.
* Plants do not hunger or hunt.
* If a plant is not surrounded by 3 or more of the same kind of plant, it reproduces.
* A short info is displayed at top of the screen when you click on a living form.
* Camel_2_1 represents the first offspring of the second camel for example.

4008 views / 9 in the last 7 days

1 vote | 0 in the last 7 days

Tags: simulation

There is no HTML 5 translation of this scenario available.
View legacy version (requires Java plugin)

This scenarios uses Java features that are not available for use after conversion to HTML 5. Please try the legacy version, which requires the Java plugin to be installed.

Super_HippoSuper_Hippo

2016/2/3

Cool thing, it reminds me of one of my simulations :) Did you do it on purpose that the reproduced creatures spawn randomly and not at the parent's location?
felagundfelagund

2016/2/4

Thanks. yes spawning near the parent was disadvantagous for the creature, but i will find a way to do it.
A new version of this scenario was uploaded on 2016-02-06 09:43:33 UTC 1. swarm behaviour implemented for herbivores (%5 chance to turn towards parent when moving freely) 2. sense smell behaviour implemented for carnivores (%5 chance to sense*2 when moving freely) 2. now creatures enter the world near their parents. 3. old age decreased to %80 of maximum age. 4. weasel & mouse maxAge increased to 350 5. realtime status display added. 6. bear sense increased to 175px 7. number of starting living forms updated
Super_HippoSuper_Hippo

2016/2/6

The box popping up when clicking on a creature should be displaced on top of everything else. If you need a new idea of what you could do next... you could display the number of creatures of each type over time in a diagram and show it after the simulation is over.
felagundfelagund

2016/2/8

End of simulation summary table is a good idea, thanks.
A new version of this scenario was uploaded on 2016-02-13 10:04:17 UTC
A new version of this scenario was uploaded on 2016-02-13 10:05:04 UTC 1. status display text now stays on top 2. status display text updated (transparent, blue) 3. end of simulation summary table added. 4. number of starting living forms updated

Want to leave a comment? You must first log in.

Who likes this?

Super_Hippo