Genetic Algorithm

Implementation of a Genetic Algorithm.

Set a task for my creatures, and give them a genetic setup that will allow them to solve this task.
Then, spawn generations based on the algorithm until a vast majority is able to survive.

The thinking process of keeping the strongest DNA is pink, the same principle can be used on multiple setups.

 

genetic_alg