Live data from Hacker News

Show HN: I built an autopilot for the lunar lander game

szhu.github.io

71–73 of 73 posts

Re: Show HN: I built an autopilot for the lunar lander game

#71
post #69

I can confirm that with the improved auto-pilot it is possible to get a 103.6 point landing after performing 1,151 flips (and reaching a max speed of 504 mph and a height of about 38k feet), if you can spare your phone for 38 minutes.

I admire your dedication! Thank you for sacrificing 38 minutes of screen time for a noble cause.

Re: Show HN: I built an autopilot for the lunar lander game

#72
post #70

Lunar lander is a one of the problems in Open AI Gym, where you test AI against standard set of problems: https://www.gymlibrary.dev/environments/box2d/lunar_lander/ Then you have stable baselines which implements popular reinforcement learning algorithms to solve these gym problems: https://stable-baselines3.readthedocs.io/en/master/ Shamless plug: I've built a series of games where you solve puzzles (2048) / toy pr…

I wish I could play them in the browser instead of with apps.

I didn't make it available on web because it would be hard to monetize it (happy to be corrected if I'm wrong on this).

I'm working as an indie game dev full-time so making money is high on priorities.

Re: Show HN: I built an autopilot for the lunar lander game

#73
post #66
post #8

I wanted to go for a record of as many flips as possible. So I boosted up to 25,000 feet; started spinning until it was doing about one flip per second; waited a few minutes; then turned on the autopilot to come into a landing. The autopilot did a perfect job of stopping the rotation and lateral motion, so the lander came down straight as an arrow. Unfortunately, the autopilot didn't even try to decelerate! I crashed…

Update: I added a new algorithm, and I think it might be impossible to crash the ship now. Let me know if you can still reproduce the bug!

Yep, it lands safely now!
Post reply on HN