Skip to content

sh2439/AI_Flappy_Bird

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI_Flappy_Bird


This repository holds the Flappy Bird game implementations where you can play the game manually or train an AI to play the game.

Contents

  • Flappy Bird game:

    drawing
  • AI Flappy Bird with NEAT algorithm:

    drawing

Usage

  • To play the game manually:

    • Run python bird_manual.py
    • Click or press Space to start the game.
    • Press SpaceorUP to control the bird.
    • Press Escape to exit the game.
  • To train an AI to play the game:

    • Run python bird_ai.py

Dependencies

  • pygame
  • numpy
  • neat-python
  • os
  • sys
  • random

Acknowledgements

The Flappy Bird game design images come from Github repository FlapPyBird and some code of the NEAT algorithm implementation on Flappy Bird game comes from NEAT-Flappy-Bird.

You can also check NEAT-Python to find the official documentation of Neat-Python.

Releases

No releases published

Packages

No packages published

Languages