Skip to content

luis705/flappy-bird

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flappy Bird


A flappy bird clone made both for playing and for training a NEAT neural network

Made by Luis Otávio Last Commit License


Table of Contents


🚀 Getting Started

Prerequisites

Clone

  • Clone this repo using in the terminal:
git clone git@github.com:luis705/flappy-bird.git

Install python

  • Windows

    Go to python.org, download the installer and run it.

  • Linux

    Type on terminal:

sudo apt-get install python3

Install required packages

Open the terminal and run

pip install pygame neat-python

Using

To play the game just open the terminal inside the game folder and run main.py with

python3 main.py

To see the training of the neural network run the ai.py filey

pythohn3 ai.py

📋 Features

  • Flappy bird game
  • Neural netowrk using NEAT

Built with

  • Core

    Python - a easy to learn, but powerfull programming language

  • Graphics

    Pygame - a set of Python modules designed for writing video games. Pygame adds functionality on top of the excellent SDL library.

  • Neural Network

    Neat-pythohn - a pure Python implementation of NEAT, with no dependencies other than the Python standard library.


🎮 Controls

Playing

  • Spacebar: jump
  • R: restart after death

Neural network

  • After 100 generations their data will be saved on scores.json


📝 License

License

This project is licensed under the MIT license - see the LICENSE file for details

About

Flappy bird clone and NEAT AI algorithm

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages