Over my forty years or so in and around dealing rooms and financial markets, I have heard many theories as to how to approach that problem and have settled on a process that has worked for me ...
Loop through each pipe. Get each pipe’s position and the bird’s position. Remove the pipes that are already at the extreme ...
If you're on a Galaxy Fold, consider unfolding your phone or viewing it in full screen to best optimize your experience.