Git Product home page Git Product logo

habitat's Introduction

Eco-System

Task:

Create an application that imports the provided YAML config file (which containins Control parameters, Species parameters and Habitat Parameters) and then simulates the passage of time for each species in each habitat.

At the end of each run, provide the following data:

Species

Habitat:

  • Average Population: x
  • Max Population: x
  • Overall Mortality Percentage: x%
  • Causes of Death
    • x% starvation
    • x% age
    • x% cold_weather
    • x% hot_weather
Rules/Notes:

Passage of Time:

  • The passage of time should be in months. Animals only eat/drink/mate/die at 1 month intervals & habitats only refresh their food/water/temperature at 1 month intervals.
  • The Years value in the config should control how many years the simulation should run.
  • The Iterations value in the config should control how many times you run the full simulation from beginning to end. When running multiple iterations, final stats should represent stats from all iterations combined.

Species:

  • Each month individual animals should consume food/water, age, and survive temperature conditions
  • You only need to run one species at a time inside of a habitat (no need to run species side-by-side)
  • Assume animals are not monogamous
  • There is no need to keep track of parent/child relationships

Death Types:

  • Starvation: 3 consecutive full months without food
  • Thirst: 1 full month without food
  • Old Age: age > life_span
  • Extreme Temperature: 1 full month above or below threshold for species

Breeding:

  • When a species starts in a new habitat it should begin with exactly 1 male and 1 female
  • Breeding is controlled by
    • available females (not pregnant and within the breeding age range)
    • a supportive habitat
      • there should be more food/water currently available in habitat than is required to support the current population
      • HOWEVER, even when there is not enough food, allow breeding to occur at a 0.5% rate.
    • gestation period (# of months a female is pregnant before giving birth)
    • When a female gives birth, the sex of the offspring should be chose 50:50

Habitat:

  • The Habitat should refresh its food/water supply every month.
  • Seasons/Temperature
    • Use this Season/Month mapping
      • 12,1,2 = Winter
      • 3,4,5 = Spring
      • 6,7,8 = Summer
      • 9,10,11 = Fall
    • The temperature should be updated for every new month and should fluctuate above/below the average by 5 degrees with a 0.5% chance of having a 15 degree fluctuation

habitat's People

Contributors

yourshainess avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.