This was a fun project for me. Here we create an AI which plays the game Flappy Bird.
We firstly create the game with Pygame and then use the NEAT module to make the AI.
pygame is a Python wrapper for the SDL library, which stands for Simple DirectMedia Layer. SDL provides cross-platform access to your system’s underlying multimedia hardware components, such as sound, video, mouse, keyboard, and joystick. pygame started life as a replacement for the stalled PySDL project. The cross-platform nature of both SDL and pygame means you can write games and rich multimedia. Python programs for every platform that supports them!
NEAT (NeuroEvolution of Augmenting Topologies) is a method developed by Kenneth O. Stanley and Risto Miikkulainen for evolving arbitrary neuralnetworks.
This project is a Python implementation of NEAT with Pygame dependency.
For further information regarding general concepts and theory, please see NEAT Paper.
neat-python
is licensed under the 3-clause BSD license.
- Pygame
- Random
- Time
- OS
- NEAT
The images needed for game's BackGround, Pipes, Base and different Bird positions are included in the img folder
- Pygame
- Neat
Just run the game and see flappy learn the game on it's own