Performance Analysis of Flappy Bird Playing Agent Using Neural Network and Genetic Algorithm

  • Yash MishraEmail author
  • Vijay Kumawat
  • K. Selvakumar
Conference paper
Part of the Communications in Computer and Information Science book series (CCIS, volume 1025)


The aim of this paper is to develop and study an artificial intelligence based game-playing agent using genetic algorithm and neural networks. We first create an agent which learns how to optimally play the famous “Flappy Bird” game by safely dodging all the barriers and flapping its way through them and then study the effect of changing various parameters like number of neurons on the hidden layer, gravity, speed, gap between trees has on the learning process. The gameplay was divided into two level of difficulty to facilitate study on the learning process. Phaser Framework was used to facilitate HTML5 programming for introducing real-life factors like gravity, collision and Synaptic Neural Network library was used to implement neural network so as to avoid creating a neural network from scratch. Machine Learning Algorithm which we have adopted in this project is based on the concept of Neuro-Evolution and this form of machine learning uses algorithms which can evolve and mature over time such as a genetic algorithm to train artificial neural networks.


Artificial Intelligence Neural network Genetic algorithm AI Game-playing agent Flappy bird 


  1. 1.
    Rhiannon, W.: What is Flappy Bird? The game taking the App Store by storm. The Daily Telegraph. January 30 (2014)Google Scholar
  2. 2.
  3. 3.
    Kumar, A., Garg, S., Garg, S., Chaudhry, R.: Flappy Bird Game AI using Neural Networks, 1–8 (2016) Google Scholar
  4. 4.
    Chen, K.: Deep Reinforcement Learning for Flappy Bird. Cs229.Stanford. Edu, 6 (2015). Scholar
  5. 5.
    Sahin, A., Atici, E., Kumbasar, T.: Type-2 fuzzified flappy bird control system. In: 2016 IEEE International Conference on Fuzzy Systems, FUZZ-IEEE 2016, pp. 1578–1583 (2016).
  6. 6.
    Lucas, S.M., Kendall, G.: Evolutionary computation and games. IEEE Comput. Intell. Mag. 1(1), 10–18 (2006). Scholar
  7. 7.
    Sipper, M., Giacobini, M.: Introduction to special section on evolutionary computation in games. Genet. Program Evolvable Mach. 9(4), 279–280 (2008). Scholar
  8. 8.
    Nie, Y.: How does a Flappy Bird Learn to Fly Itself How does a Flappy Bird Learn to Fly Itself, August (2017)Google Scholar

Copyright information

© Springer Nature Singapore Pte Ltd. 2019

Authors and Affiliations

  1. 1.Vellore Institute of TechnologyVelloreIndia

Personalised recommendations