As ever, this is the kind of problem I find more fun in programming a computer to solve than in solving myself, by hand. But this is a fun implementation! Good controls, too - it only took me two tries to land, which is better than I ever managed with an Apple II and a keyboard as a kid.