Live data from Hacker News

Hacking Flappy Bird with Machine Learning

sarvagyavaish.github.io

31–40 of 56 posts

Re: Hacking Flappy Bird with Machine Learning

#32
post #14

I really want to build a Lego Mindstorms robot (or similar) that watches my phone with a webcam, holds a stylus, and plays Flappy Bird. I have played enough (high score 194) that I am pretty sure I know the right strategy, I just want to take human error out of the equation. Are there open source vision libraries that are low-latency enough to play this in real time? Assuming the robot could keep up with some regular…

holy shit you sound like a crack addict (only with flappy bird) - they say it's addictive but you're taking this to another level. "Man I need to do a Lego Mindstorms robot with a webcam and stylus and OpenCV - I've gotten to 194 but I NEED more. I need to take the human element out of this equation...."

umm no

Re: Hacking Flappy Bird with Machine Learning

#33
post #14

I really want to build a Lego Mindstorms robot (or similar) that watches my phone with a webcam, holds a stylus, and plays Flappy Bird. I have played enough (high score 194) that I am pretty sure I know the right strategy, I just want to take human error out of the equation. Are there open source vision libraries that are low-latency enough to play this in real time? Assuming the robot could keep up with some regular…

holy shit you sound like a crack addict (only with flappy bird) - they say it's addictive but you're taking this to another level. "Man I need to do a Lego Mindstorms robot with a webcam and stylus and OpenCV - I've gotten to 194 but I NEED more. I need to take the human element out of this equation...."

A worrying amount of serious CS effort was put into the problem of Sudoku solving after it became a big hit.

Re: Hacking Flappy Bird with Machine Learning

#34
post #14

I really want to build a Lego Mindstorms robot (or similar) that watches my phone with a webcam, holds a stylus, and plays Flappy Bird. I have played enough (high score 194) that I am pretty sure I know the right strategy, I just want to take human error out of the equation. Are there open source vision libraries that are low-latency enough to play this in real time? Assuming the robot could keep up with some regular…

What do you mean strategy? I only played on http://flapmmo.com but it seemed like it was only a game of reflex (I got to level 12).

Re: Hacking Flappy Bird with Machine Learning

#37
post #14

I really want to build a Lego Mindstorms robot (or similar) that watches my phone with a webcam, holds a stylus, and plays Flappy Bird. I have played enough (high score 194) that I am pretty sure I know the right strategy, I just want to take human error out of the equation. Are there open source vision libraries that are low-latency enough to play this in real time? Assuming the robot could keep up with some regular…

holy shit you sound like a crack addict (only with flappy bird) - they say it's addictive but you're taking this to another level. "Man I need to do a Lego Mindstorms robot with a webcam and stylus and OpenCV - I've gotten to 194 but I NEED more. I need to take the human element out of this equation...."

You must be unfamiliar with crack.

Re: Hacking Flappy Bird with Machine Learning

#38

Neat. You could also probably do this with a genetic algorithm. Thinking out loud here: - Have a neural network with 6 inputs for: - player x - player y - acceleration speed - acceleration direction - next pipe mid-point x - next pipe mid-point y - Two outputs of 0 or 1 for click or no-click The fitness score would be how close the player is to the pipe mid-point. Hopefully, this would cause the bird to stay as close…

is being in the middle of the pipes the ideal position most of the time?

Re: Hacking Flappy Bird with Machine Learning

#39
post #28

How hard would it be to solve this deterministically? Can someone comment on the game's physics? I am assuming: - constant horizontal velocity - gravity - flapping implemented via impulse - collisions are handled with bounding boxes Maybe someone who knows something about optimal control (ODE) say whether this is analytically solvable? Of course there's still the practical stuff (numerical integration, I/O lag) to de…

If you play the game, it's actually quite trivial to program deterministically. :-) Flapping is not implemented as an impulse. It's more like jumping in Mario - it instantaneously fires a canned "flap" movement that is always the same. Set flap_height = bottom of next pipe + constant. If bird height Done!

It also looks like you'd want to avoid flapping into the top of the pipe.

Re: Hacking Flappy Bird with Machine Learning

#40
post #14

I really want to build a Lego Mindstorms robot (or similar) that watches my phone with a webcam, holds a stylus, and plays Flappy Bird. I have played enough (high score 194) that I am pretty sure I know the right strategy, I just want to take human error out of the equation. Are there open source vision libraries that are low-latency enough to play this in real time? Assuming the robot could keep up with some regular…

If you're going to go as far as running it in an emulator... then why not just write something that works in process and avoids the whole visual feedback / physical input loop altogether? It's how bots are written for MMO's like WOW.
Post reply on HN