A simple solution to a simple problem!
encoded in Javascript, using Node to transpile the code!
We have a population of beetles, each with its own random color, and the best beetle is the darkest, as it can camouflage itself better.
Develop a genetic algorithm that simulates natural evolution, surviving the best beetles, where mutations can also occur!
Just open the index.html inside src folder
You need to install browserify and more project dependencies.
hello@world:~$ npm i browserify --g
or
hello@world:~$ yarn add browserify -D
hello@world:~$ npm i
or
hello@world:~$ yarn
I Hope You Enjoy :)