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".
- Host: GitHub
- URL: https://github.com/leonwind/flappy-bird-ai
- Owner: leonwind
- Created: 2020-12-26T12:35:45.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-07-31T22:18:38.000Z (almost 2 years ago)
- Last Synced: 2025-04-10T16:50:33.357Z (about 1 year ago)
- Topics: genetic-algorithm, neat, neural-networks, neuro-evolution
- Language: Python
- Homepage:
- Size: 85.9 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```