Skip to content

matprst/flappy-bird-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flappy-bird-AI

Evolutionary algorithm training a flappy bird AI. Each bird, as a red ball, is controlled by a multilayer perceptron to perform two actions: jump or nothing. A population of birds is initialized at random and perform until all the birds died. After that, a new generation of birds is created using crossover and mutation of the members of the previous generation.

Installation

Use the package manager pip to install flappy-bird-AI.

pip install -r requirements.txt

Usage

You can start and visuialize the training using (an almost perfect bot should be created within 50 generations):

python game.py

new generation | last survivor

About

Flappy-bird bot trained using an evolutionary algorithm. Implemented in Python.

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages