X Tutup
Skip to content

Latest commit

 

History

History

README.md

Flappy Bird - Q learning

A Flappy Bird Clone made using python-pygame along with a Q-learning bot.
Based on sourabhv's flappy bird, inspired by the work of chncyhn, SarvagyaVaish and YueDayu

Dependency

  1. numpy
  2. pygame

How to

  1. Install NumPy via pip install numpy
  2. Install PyGame via pip install pygame
  3. Run python flappy.py from the repo's directory
  4. Adjust the FPS by up and down key

Notes

The bot will typically take about 500 iterations to get first scores, and 2500 iteraction to reach 100 scores.
It can get on average 50 score and over 300 maximum scores after 5000 iteractions, and could get better if it is trained longer.
This is definitely not good enough compare to chncyhn' works, which can usually get over 300 average scores and hit over 2000 maximum score

ScreenShot

Flappy Bird

X Tutup