Skip to content

Latest commit

 

History

History
40 lines (23 loc) · 1.72 KB

README.md

File metadata and controls

40 lines (23 loc) · 1.72 KB

JavascriptEvolutionExperiment

An evolution simulator created in JavaScript. The entities use neural networks created using a genetic algorithm.

https://www.youtube.com/watch?v=6rRRvRlWY4w

Original : An evolution simulator created in JavaScript. The entities use neural networks created using a genetic algorithm.

John Hess

http://h3ss.com/evolution/

Modified the original code of John Hess's Evolution simulator, with more "creatures" and bigger brains. Took 96 hours for them to learn to eat the food, (very slow). The video shows development at 150 hours.

Note that left hand circles seem to be the current best strategy to get food at this stage and none of the creatures cross the boundary at the edge of screen, even though they can tel-port ..

It should be noted the first time it was run it only took 48 hours for the bigger brains to find the food, so you might have more luck starting a couple.

Once a population has evolved you can "stress it" by zooming out (Cntr - ). This increases the area, but reduces the food.

In the experiments with https://github.com/wrapperband/JavascriptEvolutionExperiment and creating larger brains, I found that it took longer to evolve skills.

Instinct or skills analysis

Here is and example skills and evolve time for a large brain i.e. (6 neurons with 7 layers).

The first skill learned was go forward ( repeated starts (20) until some creatures move) Find Food 5 hours Wait while no food is available 5 hours Turn Right and left 100 hours Find "lines of food" 150 hours Deliberately target centre of food - 150 hours Move away from other creatures if food scarce - not found Move towards larger food when 2 are available - not found scan for food - not found Look behind them selves - not found