Skip to content

This is an AI bot that learns to play the game Flappy Bird by itself.

Notifications You must be signed in to change notification settings

notkshitijsingh/neat-flappy-bird

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flappy Bird BOT

This is an AI bot that learns to play the game Flappy Bird by itself. It use the NEAT module in python to achieve this. Apart from this module, I have also used pygame to actually make the Flappy Bird game itself.

Online Deployment for running the application in your browser

Installation

  1. Download the code in a ZIP format and unzip it in a folder of your choice.
  2. Open Terminal and install neat-python and pygame modules.
  pip install pygame
  pip install neat-python
  python main.py
  1. Run the main.py file.

Working

This uses the position of the bird and the position of the pipes to form neural networks using NEAT. If you do not understand it, it's basically like Darwin's Natural selection where many generations are created with the best traits passed on till a perfect bot is achieved.

Screenshots

Running running Output output

About

This is an AI bot that learns to play the game Flappy Bird by itself.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages