Skip to content

A Simple Ecosystem with Lions, Chickens and Grass in Unity

License

Notifications You must be signed in to change notification settings

jeanrdev1/Unity-Ecosystem

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unity Ecosystem

A Simple Ecosystem with Lions, Chickens and Grass in Unity.

Graph

About

A devlog about this project is available here:

Youtube Devlog

This project simulates a simple prey-predator system:

  • Agents lose energy by moving. If their energy is too low, they look for food:

  • Lions eat Chickens

Graph

  • Chickens eat Grass

Graph

  • If they have enough energy, they reproduce. The children inherit the average speed of their parents

Graph

  • Speed of an agent makes them move faster but also consume energy faster so natural selection finds a compromise.

Graph

In the above simulation, lions initially have the upper hand in terms of speed and therefore have more population. However, through natural selection, only the faster chickens survive and reproduce. This leads to new chickens being able to outrun lions and leave them with no food which leads to their extinction.

Package Requirements

This project uses the following non-included packages:

About

A Simple Ecosystem with Lions, Chickens and Grass in Unity

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 92.9%
  • C# 7.1%