asimMahat / AI-Flappy-Bird

Flappy bird learns to play the game by itself using NEAT(Neuro-evolution of augmenting topologies) algorithm.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AI-Flappy-Bird

Here, flappy bird learns to play the game by itself using NEAT(Neuroevolution of augmenting topologies) algorithm.

This is build by using python pygame library. The basic overview of the process:

  1. Importing the necessary libraries.
  2. Loading the data(images).
  3. Creating classes 'Pipe','Bird','Base' and defining multiple functions.
  4. Defining the function 'def draw_window()' to draw the window for game.
  5. The 'def main()' function is used to call the necessary attributes.
  6. The 'def run()' function is used to run the config file. The config file is where we set the values for population size,generations,fitness threshold,activation function as so on. We can optimize the performance by altering config file.
  7. Finally the config file is loaded to config_path and config_path is being run.

WATCH DEMO :

https://www.youtube.com/watch?v=6I05lHqVhzM&t=22s

SCREENSHOT:

Screenshot

About

Flappy bird learns to play the game by itself using NEAT(Neuro-evolution of augmenting topologies) algorithm.


Languages

Language:Python 100.0%