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
- numpy
- pygame
- Install NumPy via
pip install numpy - Install PyGame via
pip install pygame - Run
python flappy.pyfrom the repo's directory - Adjust the FPS by
upanddownkey
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
