Flappy Bird Game Based on the Deep Q Learning Neural Network

Authors

  • Jiarui Gu
  • Yunhao Guo
  • Yushan Lam
  • Ziyou Benjamin Pu

DOI:

https://doi.org/10.54097/hset.v34i.5448

Keywords:

Deep Q, Flappy Bird, Machine Learning.

Abstract

In the past decades, with the rapid development of technology, people discovered ways for machines to learn. Machines can be trained to recognize things, play games, create sounds, or find the best choices. There are several models and tools to train the machine to make the machine learn through supervised or not supervised, even independent learning. Through neural networks or other methods, the machine can be trained for many episodes. Making awards or punishments can make the machine construct ways to decide the most valuable solution. Among these functions AI can achieve, game is the most direct platform to apply machine learning, since awards and punishments can be applied very easily: through the score. In this study, we choose to use a Deep-Q-Learning Neural Network (DQN) to train our AI to achieve our goal: Using AI to play Flappy Bird through deep learning. Our task is different from other game training, such as navigating an AI to find the best solution in different choices. In this task, the player (i.e. bird) cannot get any award or punishment through a single action, but it can get an award by passing each obstacle. The goal of the AI is to pass as many obstacles as it can, by choosing to fly upward or idle.

Downloads

Download data is not yet available.

References

Daochen Z et al. RLCard: A Toolkit for Reinforcement Learning in Card Games [C]. Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence (IJCAI-20) Demonstrations Track.

Oh I. et al. Creating Pro-Level AI for a Real-Time Fighting Game Using Deep Reinforcement Learning [J], in IEEE Transactions on Games, vol. 14, no. 2, pp. 212-220, 2022.

Jones J, Benefits of Genetic Algorithms in Simulations for Game Designers [D]. Thesis, School of Informatics, University of Buffalo, Buffalo, USA, 2003.

Manslow J. Using Reinforcement Learning to Solve AI Control Problems [B], in AI Game Programming Wisdom 2, S. Rabin, (Editor). Hingham, USA: Charles River Media, 2004.

Michelle M. Learning to be a Bot: Reinforcement Learning in Shooter Games School of Information Technology and Electrical Engineering [R], University of Queensland St Lucia, Australia, 2008.

Williams R. What is Flappy Bird? The game taking the App Store by storm [R], The Daily Telegraph. Archived from the original on January 30, 2014. Retrieved January 30, 2014.

Heney E. Chocolate Lab Apps [R]. Archived from the original on February 6, 2014.

Crecente B. Polygon [R]. Archived from the original on June 30, 2015. Retrieved June 13, 2015.

Mnih V. Playing atari with deep reinforcement learning [R]. arXiv preprint arXiv:1312.5602.

Chen L. Deep Learning Flappy Bird [R]. Github, 2022.

Downloads

Published

28-02-2023

How to Cite

Gu, J., Guo, Y., Lam, Y., & Pu, Z. B. (2023). Flappy Bird Game Based on the Deep Q Learning Neural Network. Highlights in Science, Engineering and Technology, 34, 191-195. https://doi.org/10.54097/hset.v34i.5448