DeepLearningFlappyBird icon indicating copy to clipboard operation
DeepLearningFlappyBird copied to clipboard

Another AI flappy bird using genetic programming (evolutionary computation)

Open ShuhuaGao opened this issue 7 years ago • 1 comments

Appreciate this excellent work. I got a lot of inspiration from this work on pygame.

I have achieved to train an AI for a more difficult version flappy bird: the horizontal distance between adjacent pipes and the gap between up and down pipes are random within a certain range rather than being fixed. Instead of neural networks and reinforcement learning,I use evolutionary strategies and Cartesian genetic programming, which attempts to build the control function (a math expression) directly using only basic arithmetic operators. With a small population of size 10, the bird can learn to fly quite well in typically less than 50 generations, which seems to be much more efficient than simple neuron evolution.

I implement this algorithm with Python and pygame. For those who are interested, please check my GitHub repository. A demo is here.

ShuhuaGao avatar Oct 23 '18 15:10 ShuhuaGao

Wow,it must take you a lot of time But it can't be more cool

zfk513 avatar Apr 05 '19 05:04 zfk513