Giter Club home page Giter Club logo

flappybirdai's Introduction

FlappyBirdAI

This is a flappy bird game implemented using pygame in python. It offers three modes to users:-

  1. Manual play mode.
  2. AI learns to play the game and then plays it.
  3. Play the game using previously trained AI.

Tech Stack

  1. Python
  2. Pygame
  3. NEAT (NeuroEvolution of Augumenting Topologies)

Motivation

I am an AI/ML enthusiast and consistently work to improve my skills in this area. A few months back I came across a youtube video by "code bullet" in which he implemented the Flappy Bird game using AI. I wanted to do the same. After acquiring the necessary skill set, i did it!

Challenges

Major challenege for me was implementing the flappy bird game from scratch. I was not quite familiar with the pygame module. Then there were some issues with the neat module like creating a decent fitness function and dealing with the input genomes. Took help from various articles and youtube channels and eventually came up with a slution to every problem and hence made a fully functional project.

What I learnt

The best way to learn programming concepts is by implementing them. I learned a lot about the pygame module through this project. I learnt to deal with various errors that arise while working with pygame. Apart from that I learnt about the working of the genetic algorithms and how they create an AI.

Future plans

I will work on reducing the number of files used by grouping them in two major classes that will deal with Manual play and AI play. Moreover I would like to work on the UI of the game.

Video Demonstration

Watch this video to see the model being trained and then being implemented to play the game:- https://youtu.be/xxg-3QwgJwA

flappybirdai's People

Contributors

dev-d-gr8 avatar

Stargazers

Sang Hun Kim avatar Benjamin-Yves Trapp avatar Lakshay Jain avatar Aral Benli avatar Nikos Mpasdanis avatar YoussefAbbas avatar Tirana Noor Fatyanosa avatar Ibrahim Khaild avatar  avatar Muro96 avatar sandeepk97 avatar dliebich avatar Sagar Raichandani avatar Adnan Rashid avatar  avatar  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.