An open API service indexing awesome lists of open source software.

https://github.com/masterskepticista/neat-flappy-bird

NEAT algorithm JS
https://github.com/masterskepticista/neat-flappy-bird

genetic-optimization-algorithm javascript-library neural-network p5

Last synced: 10 days ago
JSON representation

NEAT algorithm JS

Awesome Lists containing this project

README

          

# NeuroEvolution of Augmenting Topologies
NEAT algorithm in p5.js

Run the Flappy bird demo in your browser! [Flappy GA](https://raw.githack.com/MasterSkepticista/NEAT-Flappy-Bird/master/index.html) :bird:

Use the slider to speed up the learning. Birds will have a time-lapse.

Bonus point: If the simulation doesn't freeze when slider is pulled high, you have a good PC.

If not, buy a new one. :neutral_face:

### Code

Sketch begins in game.js, contrary to nomenclature.

This is a Neuroevolution algorithm, NEAT (of Augmented Topologies), where optimizations are based on spawns of a single unit, each carrying its own Neural Network.
In this bird game, a random population of birds is spawned, each with random 'brains'.

for(let i = 0; i