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

How to use this to play flappy bird game on webpage? #31

Open
woshichuanqilz opened this issue Mar 7, 2022 · 0 comments
Open

How to use this to play flappy bird game on webpage? #31

woshichuanqilz opened this issue Mar 7, 2022 · 0 comments

Comments

@woshichuanqilz
Copy link

If I want to play the game on a webpage. Which means I would get the info about the game by opencv and more important I can just has one bird a time. So I have to set the pop in the config file to 1.

But I get some division zero error. So I check this link below:
CodeReclaimers/neat-python#214
And make the means related function return 0, when the length of values is 0.

But now seems the train is not working. Since I run for 50 generation, and at final the ai still do noting even failed for 49 times.

So how to fix this problem?

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

1 participant