Lurker News
I’ve been working on this game for the past few weeks. It’s written in plain JavaScript, mostly with canvas, with no dependencies.

The code is here: https://github.com/ehmorris/lunar-lander

Comments (170) 102 threads

Show all comments

Showing thread 15 of 102

Dave_Rosenthal1 reply#
Tried to get a good landing with as few control actions as possible. For a simple new scoring system, subtract your number of control actions from your landing score:

  Very nice landing, amazing

  Score: 90.5 point landing
  Speed: 2.9mph
  Angle: 0.2°
  Time: 18 seconds
  Flips: 0
  Max speed: 53.7mph
  Max height: 425ft
  Engine used: 1 times
  Boosters used: 3 times
So, a score of 86.5 in the new system.
plaidfuji1 reply#
I was trying the same and this is super impressive… only 1 main engine fire??? I think this is actually part of the constraints of the real world landing problem.
Dave_Rosenthal#
Yeah, first thing I did was to try to get a feel for when I needed to hit the main engine. Executing a landing with 1 or 2 fires I can do with some regularity. Getting the boosters to 1 or 2 is very hard due to initial conditions, but 3 to 5 is also somewhat doable. All of it coming together for a 90 point landing involved some luck for sure.