Skip to content

This project aims to create an evolution simulation where changes in a population can be observed under different conditions.

License

Notifications You must be signed in to change notification settings

emirsoyturk/Evolution-Simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

Evolution Simulator

This is a simple evolution simulator.

Table of Contents
  1. Getting Started
  2. How to Use
  3. Contact

Getting Started

This is a simple evolution simulator. It is a work in progress, and is not yet complete. It is written in Javascript, and uses the p5.js library.
Demo: https://evolution-sim.netlify.com/

Installation

  1. Clone the repo
    git clone https://github.com/Volthai7us/Evolution-Simulator/
  2. Move to project folder
    cd Evoluation-Simulator

How it works

  • General

    • Click play to start the simulation.
    • Click pause to pause the simulation.
    • Click next to run the simulation for one generation.
    • Click reset to reset the simulation.
  • Default Settings

    • The simulation starts with a population of 1000 creatures.
    • Each creature has a brain, which is a neural network.
    • The brain has 6 inputs, and 5 outputs. (These can be changed in the code)
    • The inputs are the location of the creature, left block, right block, top block, and bottom block.
    • The outputs are the direction the creature should move, left, right, up, down, or die.
    • The brain is initialized with random weights and biases.
  • Canvas

    • The canvas splits 3 parts.
    • The top right part is the simulation.
    • The top left part is the creature's brain.
    • The bottom part is the chart of the population over time.
    • The orange area in chart is how many creatures are died in the generation.
    • The blue area in chart is how many creatures produced a child.
    • The gray area in chart is how many creatures did not produce a child.
  • Extra Controls

    • Click a creature to see its brain.
    • Select fitness function from the dropdown menu.
    • Click the "Add Wall" button to add a wall to the simulation.
    • The "Safe Zone" slider controls the size of the safe zone.
    • The "Brain Size" slider controls the size of the brain.
    • The "Gene Number" slider controls the number of genes.
    • The "Threshold" slider controls the decision threshold.

Contact

Emir Soyturk - [email protected]

You can find the README Template via link. https://github.com/othneildrew/Best-README-Template/blob/master/BLANK_README.md

About

This project aims to create an evolution simulation where changes in a population can be observed under different conditions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published