Evolving an ecosystem


March 10, 2019

Contents

This tutorial will go through how to build a basic evolution simulation using Javascript. It uses the HTML5 canvas element to display the simulation, but I've written so it should be easy to use another graphics method, such as processing.js or SVG.

The simulation is based on something similar by Daniel Shiffman. He has a great video tutorial about it here. I've called it an ecosystem simulation because involves multiple organisms interacting, living and dying continuously (unlike genetic algorithms which tend to have discrete generations).