Simulate evolution
Project description
Welcome to the Evolution Simulator!
This tool allows you to simulate the natural process of evolution in a simplified, artificial environment. Essentially, the tool simulates an environment filled with mice and owls. The mice strive to survive by eating grass, while the owls prey on the mice. Both animals are capable of propagating and pass down their genes to the offspring. Let evolution do its work, and see the marvelous effects of natural selection!
Every simulation is based on a number of settings that you will specify before beforehand - or you can choose a pre-determined configuration if you like!
The tool has two different modes:
- Interactive mode, where you can see evolution working in real-time.
- Simulation mode, where you can test a range of different custom configurations, figuring out which variables are important for stimulating evolution.
In the environment, male and female mice are coloured dark and light blue respectively, while male and female owls are colored red and orange respectively. Each animal is given a number, indicating its level of speed. If the number is underlined, it means the animal is currently pregant, and will soon produce offspring.
How to run:
- Install the necessary packages listed in requirements.txt via PIP
- Navigate to root folder and run "pythonw app.py" for smoothest experience
- Follow instructions and enjoy!
Variables:
Environment
- dimensions - number of vertical and horizontal tiles in the environment
- rock_chance - the probability in percent that a tile is an obstructive rock instead of grass
- grass_grow_back - number of ticks before grass grows back after being eaten
Simulation mechanics
- rand_catch - determines if catching is probability based or deterministic
- in_medias_res - determines if simulation is started cold or warm
- rand_variance_trait - the amount in percentage that offspring can vary in the speed trait from the average of its parents
- speed - determines whether or not the speed trait is inherited
Mice
- m_number - number of mice upon start of simulation
- m_die_of_hunger - number of ticks before a given mouse dies of hunger
- m_preg_time - number of ticks that a female mouse is pregnant
- m_max_age - number of ticks before a mouse dies of old age
Owls
- o_number
- o_die_of_hunger
- o_preg_time
- o_max_age
Tick_time (only for interactive mode)
- slow_mode_sleep_time - time between each tick when slow-mode is enabled
Auto_testing (only for simulation mode)
- ticks - number of ticks desired to be run for the simulation
- repetitions - number of repetitions to be run for each given configuration
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file evolutionsimulator-0.1.14.tar.gz
.
File metadata
- Download URL: evolutionsimulator-0.1.14.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79729f6eb424fa1ad0e2d64de353eb309dd88ac6a3ba42aeba41c45af6afc474 |
|
MD5 | dc8169319b7784a10ce63f8b439936c5 |
|
BLAKE2b-256 | 24584356414dfecc6f28af44cd2264cc82e93536f3a3e1488cf8bedf479a4a79 |
File details
Details for the file evolutionsimulator-0.1.14-py3-none-any.whl
.
File metadata
- Download URL: evolutionsimulator-0.1.14-py3-none-any.whl
- Upload date:
- Size: 339.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8af3950f2aaffeeaa742343f5d5fdc2e526313fa00c94467b4e564517554712 |
|
MD5 | 6dbba0d3f9fa77f30be6454fec2a3b15 |
|
BLAKE2b-256 | d8f813514b8e315d4016cc3ad3003edc9f66791f7bdae0e3098d1c9f362acf2b |