Re:Hacking Flappy Bird with Machine Learning
by userbinator on Saturday February 15, 2014 @10:51PM
(#7246574)
It also looks like you'd want to avoid flapping into the top of the pipe.
Re:Hacking Flappy Bird with Machine Learning
by kenferry on Sunday February 16, 2014 @12:22AM
(#7246740)
Perhaps I should have said "threshold_height".
threshold_height = bottom_of_pipe_height + 10 pixels; // or something
if (current_height < threshold_height)
flap
else
don't flap
If you never flap when above the threshold, you will not hit the top.
Set flap_height = bottom of next pipe + constant.
If bird height < flap_height, flap.
Done!