![Genetic Switch](https://assetstorev1-prd-cdn.unity3d.com/key-image/b053a90e-e21f-414a-a21e-22c806a159bc.jpg)
A simple and scalable implementation of genetic algorithm. This package contains everything you need to get started creating awesome simulations !
Genetic algorithm is inspired by Darwin's theory of evolution and tend to simulate evolution based on natural selection.
Usages for such a system are very larges, but this is few exemples for your game :
- Create diversified ecosystem
- Evolving species based on player's actions
- Procedural generation of vehicles
- Etc ...
The genome data structure is represented as BitArray, making flexible to a large range of usages.
Genome will express hisself via a Phenome that will read it and convert it to physical properties.For exemple, the Phenome 'Color' will read a specific gene convert it as material's color. Phenome are the place to express all your creativity, coding Phenome matching your needs.
Logic for reproduction is included and contains :
- Calculating agent fitness based on a target genome or by your own calculation
- Handling crossover between 2 agents
- Handling mutation chances
Also included :
- Documentation as markdown
- Documentation as .txt
- Demo scene
Scripts are written in a clean and optimised C#. Tests scripts are included in the package