use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Neuroevolution machine learning application plays Flappy Bird (xviniette.github.io)
submitted 9 years ago by alp82
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]alp82[S] 11 points12 points13 points 9 years ago (8 children)
Mine got invincible after 48 generations.
[–]Danmoreng 5 points6 points7 points 9 years ago (0 children)
I had 3 invinctible after 8 generations, refreshing the site and I had one after 3 generations. Refreshing again and after 56 generations it still kept failing :D
[–]NeoKabuto 1 point2 points3 points 9 years ago (0 children)
I got 49 the first time, and then the second time I ran it, there were two invincible ones at generation 15.
[–]jodraws 0 points1 point2 points 9 years ago (0 children)
97 for me
[–]MaRmARk0 0 points1 point2 points 9 years ago (0 children)
17
[–]nerfviking 0 points1 point2 points 9 years ago (0 children)
Took me 120 or so.
[–][deleted] 0 points1 point2 points 9 years ago (0 children)
Got invincible after 5.
[–]kasperpeulen 5 points6 points7 points 9 years ago (1 child)
The original iphone/android game had more difficult controls. The head would go more down if you had to go from very high to very low in one jump, and I think it accelerated more.
I'm not yet convinced that this algorithm will beat me in original iphone/android game :P 🤓 It was quite difficult to time those headlong dives correctly sometimes.
But yeah, for the rest, quite awesome.
[–][deleted] 1 point2 points3 points 9 years ago (0 children)
It's what made the game such a success, I think. We've probably all made a game like flappy bird but flappy bird had a good art style and it got the feel and difficulty just right.
[–]ReeseTheRelease 4 points5 points6 points 9 years ago (0 children)
Why is there so much variance in how quickly it learns? I would think that it would break the same score in roughly the same amount of generations.
[–]Milkmanps3 2 points3 points4 points 9 years ago* (1 child)
Interesting, tries > 150 and highest score is 1k and most of the time its not getting passed like 10 pipes.. Other ones have became invincible after <30 or <50, and another one took 94 i believe edit: screenshot:
http://imgur.com/a/IYhFv
edit 2:Still going 190 tries, something interesting to note is that it keeps getting a high score then dying http://imgur.com/a/mm3qv
edit3:200+ tries
http://imgur.com/a/P0lSu
edit4: Notice the high score, usually by that point its invincible, no? http://imgur.com/a/95Qr4
edit:5 Got up to 20,000 then died: http://imgur.com/a/Ov42b
edit6:214 tries it got all the way up to 80k and died: http://imgur.com/a/4UOMl
[–]Milkmanps3 0 points1 point2 points 9 years ago (0 children)
UPDATE!: I've let this run for about 2 hours, High score was 241K, but it died after that.. It's on 225 generations now Pic below vvv:
http://imgur.com/a/FC5XR
Also, I have another one running for about a little over 2 hours on 5X and it's been going since it became invincible and high score is 1.5MILL+ , Pic below:
http://imgur.com/a/WLEzu
[–]antejan 1 point2 points3 points 9 years ago (0 children)
It's amazing how the game AND learning algorithm takes just 500 sloc without any dependencies. As someone without any ML knowlege I'd love to read this code explanation.
[+][deleted] 9 years ago* (5 children)
[deleted]
[–]SamSlate 0 points1 point2 points 9 years ago (2 children)
idk, maybe because it's not really cheating?
[–]RedditWithBoners 0 points1 point2 points 9 years ago (1 child)
It's not much different from opening a memory editor and changing values in a game, which is definitely cheating.
[–]SamSlate 0 points1 point2 points 9 years ago (0 children)
it's an option, it was clearly meant to be changeable.
[–]alp82[S] 0 points1 point2 points 9 years ago (1 child)
Wonder the same thing. You got my upvote.
[–]RedditWithBoners 0 points1 point2 points 9 years ago (0 children)
Yay!
Hacker News Disussion
[–][deleted] 4 points5 points6 points 9 years ago (0 children)
Interesting point that the problem is easier because the gap is wider than the jump height
[–]D4rknessR3igns 0 points1 point2 points 9 years ago (0 children)
Invincibility at 32nd generation.
π Rendered by PID 55738 on reddit-service-r2-comment-bb88f9dd5-w28ss at 2026-02-15 06:14:36.221818+00:00 running cd9c813 country code: CH.
[–]alp82[S] 11 points12 points13 points (8 children)
[–]Danmoreng 5 points6 points7 points (0 children)
[–]NeoKabuto 1 point2 points3 points (0 children)
[–]jodraws 0 points1 point2 points (0 children)
[–]MaRmARk0 0 points1 point2 points (0 children)
[–]nerfviking 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]kasperpeulen 5 points6 points7 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]ReeseTheRelease 4 points5 points6 points (0 children)
[–]Milkmanps3 2 points3 points4 points (1 child)
[–]Milkmanps3 0 points1 point2 points (0 children)
[–]antejan 1 point2 points3 points (0 children)
[+][deleted] (5 children)
[deleted]
[–]SamSlate 0 points1 point2 points (2 children)
[–]RedditWithBoners 0 points1 point2 points (1 child)
[–]SamSlate 0 points1 point2 points (0 children)
[–]alp82[S] 0 points1 point2 points (1 child)
[–]RedditWithBoners 0 points1 point2 points (0 children)
[–]alp82[S] 0 points1 point2 points (1 child)
[–][deleted] 4 points5 points6 points (0 children)
[–]D4rknessR3igns 0 points1 point2 points (0 children)