Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



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.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: