Show HN: Flappy Doge AI

12 points by tsholmes ↗ HN
I made a javascript AI for flappy doge. Just start the game, click once, and it'll take over.

Game: http://dogetek.co/game/

Gist: https://gist.github.com/tsholmes/8927374

Minified javascript URI:

javascript:(function(){function t(){if(ingame&&!gameover){var n=0;var r=1e4;var i=100;for(var s=1;s<=3;s++){var o=$("#tube"+s).get(0).style.left;o=Number(o.substring(0,o.length-2));if(o>40&&o<r){n=s;r=o;o=$("#tube"+s+"top").get(0).style.top;i=Number(o.substring(0,o.length-2))+600}}if(i>250)i=250;var u=$("#bird").offset().top-$("#game").offset().top-80;if(u>i+130&&fall_bird>0&&e>3){$("#tap").click();e=0}e++}setTimeout(t,20)}var e=0;t()})()

7 comments

[ 4.6 ms ] story [ 22.2 ms ] thread
go back to 4chan u neet
Nice! What's the record?