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

https://github.com/leonwind/flappy-bird-ai

Genetic algorithm (NEAT) to generate and optimize deep neural networks for the game "Flappy Bird".
https://github.com/leonwind/flappy-bird-ai

genetic-algorithm neat neural-networks neuro-evolution

Last synced: 12 months ago
JSON representation

Genetic algorithm (NEAT) to generate and optimize deep neural networks for the game "Flappy Bird".

Awesome Lists containing this project

README

          

# Flappy-Bird-Ai

Implemented a genetic algorithm ([NEAT](https://en.wikipedia.org/wiki/Neuroevolution_of_augmenting_topologies)) to generate and optimize neural networks to play Flappy Bird.
It normally takes around 10 generations until at least one bird from the population evolves, which will not die anymore.

## Usage
To let the genetic algorithm train an agent, use:
```shell
python -m flappy_bird.game
```

To just play the game for yourself, use:
```shell
python -m flappy_bird.game -play
```