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
- Host: GitHub
- URL: https://github.com/masterskepticista/neat-flappy-bird
- Owner: MasterSkepticista
- Created: 2018-07-31T13:43:30.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-04-08T14:48:54.000Z (over 5 years ago)
- Last Synced: 2025-08-09T02:40:05.603Z (2 months ago)
- Topics: genetic-optimization-algorithm, javascript-library, neural-network, p5
- Language: JavaScript
- Size: 305 KB
- Stars: 2
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NeuroEvolution of Augmenting Topologies
NEAT algorithm in p5.jsRun 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