Skip to content

mosamaasif/NEAT_Flappy_Birds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flappy Birds AI

An AI that learns to play Flappy Bird using NEAT (NeuroEvolution of Augmenting Topologies).

About

I built this as an AI course project at university. It uses the NEAT algorithm to evolve neural networks that learn to play Flappy Bird through successive generations. Each bird in a generation is controlled by its own neural network, and the best performers are selected and mutated to produce the next generation. Within a few generations, the AI consistently clears pipes without human input.

Demo

AI Playing Flappy Bird

Console Output

Built With

Getting Started

Prerequisites

Installation & Running

git clone https://github.com/mosamaasif/NEAT_Flappy_Birds.git
cd NEAT_Flappy_Birds
pip3 install -r requirements.txt
python3 code/main.py

Note: Use python instead of python3 if that's how your system is aliased.

The NEAT configuration is in code/config-feedforward.txt. You can tweak population size, mutation rates, and other parameters there.

About

Implementation of an AI using NEAT for Flappy Birds

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages