{"by":"szhu","descendants":69,"id":35090054,"kids":[35092363,35091369,35093314,35093140,35091482,35091530,35090916,35091038,35102906,35095259,35091447,35090991,35098896,35094432,35092378,35100617,35093067,35094385,35090992,35091888,35091455,35095687,35094433,35091997,35092628,35091712,35091018,35092206,35093772,35092874,35091471,35094214],"score":277,"text":"I got pretty good at (and very addicted to) the lunar lander game from a few days ago...<p>so I decided to make an autopilot for the lander based on what I felt like was the best strategy! Now I can have perfect landings every time without lifting a finger :D<p>Writing the autopilot code was a lot more fun than I expected! It felt a bit like programming a robot.<p>Source code: <a href=\"https:&#x2F;&#x2F;github.com&#x2F;szhu&#x2F;lunar-lander-autopilot\">https:&#x2F;&#x2F;github.com&#x2F;szhu&#x2F;lunar-lander-autopilot</a><p>Original lander HN post: <a href=\"https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=35032506\" rel=\"nofollow\">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=35032506</a>","time":1678419029,"title":"Show HN: I built an autopilot for the lunar lander game","type":"story","url":"https://szhu.github.io/lunar-lander-autopilot/"}