Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Another AI flappy bird using genetic programming (evolutionary computation) #30

Open
ShuhuaGao opened this issue Oct 23, 2018 · 2 comments

Comments

@ShuhuaGao
Copy link

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

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,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.

@xviniette
Copy link
Owner

Well done !

@brakdag
Copy link

brakdag commented Dec 2, 2021

Well done !

I really appreciate your work, I want to share with you a branch of your project where I used tensorflow.
brakdag.github.io/FlappyLearning

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants