GithubHelp home page GithubHelp logo

flappy_bird's Introduction

Run on Repl.it

AI Flappy bird

Ahh! The classic flappy bird game where you could just tap the screen & avoid the pipes. It was so great back then. I tried to use NEAT Algorithm to create an AI capable of playing flappy bird.

Description

This project mainly uses NEAT algorithm to achieve the task of AI playing the game. All the players are scored based on their distance therefore more distance intrun gives more score. Thus, more chance of having an offspring.

Demo

Image

Features

  • AI playing the game of Flappy bird.
  • Save the current best fit model for the current generation.

Run Locally

Clone the project

  git clone https://github.com/Sarath191181208/flappy_bird

Go to the project directory

  cd ./flappy_bird

Install dependencies

  pip3 install -r requirements.txt

Run the project Locally

  python main.py

References

Hot keys

  • S : Save the current leading offspring of this generation.

Further Work

  • Select screen.
  • select the saved generation & see it play.
  • Allow the human to play with the AI.

Requirements

  • python Make sure to add to path
  • pygame pip3 install pygame
  • tkinter default
  • pyinstaller pip3 install pyinstaller this is to create an exe alternatively you can use auto-py-to-exe pip install auto-py-to-exe
  • colorama pip3 install colorama

Authors

flappy_bird's People

Contributors

sarath191181208 avatar

Stargazers

R.l.Prasanna avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.