The code is here: https://github.com/ehmorris/lunar-lander
Unbelievable, the crater is visible from Earth
Score: 190.2 point crash
Speed: 1612.3mph
Angle: 98.6°
Time: 220 seconds
Flips: 0
Max speed: 1612.3mph
Max height: 4534ft
Engine used: 15 times
Boosters used: 129 times
https://ehmorris.com/lander/ Unbelievable, the crater is visible from Earth
Score: 1117.8 point crash
Speed: 9876.7mph
Angle: 177.3°
Time: 2101 seconds
Flips: 0
Max speed: 9876.7mph
Max height: 2505688ft
Engine used: 3 times
Boosters used: 271 times
https://ehmorris.com/lander/ Unbelievable, the crater is visible from Earth
Score: 921.4 point crash
Speed: 8113.1mph
Angle: 174.8°
Time: 1638 seconds
Flips: 0
Max speed: 8113.1mph
Max height: 1686337ft
Engine used: 417 times
Boosters used: 603 times
https://ehmorris.com/lander/ Unbelievable, the crater is visible from Earth
Score: 869.4 point crash
Speed: 7757.3mph
Angle: 62.2°
Time: 1319 seconds
Flips: 0
Max speed: 7757.3mph
Max height: 1549465ft
Engine used: 11 times
Boosters used: 351 times
https://ehmorris.com/lander/Terrible landing, you need to land slow and straight
Score: 27.9 point landing Speed: 11.3mph Angle: 5.6° Time: 8 seconds Flips: 0 Max speed: 39.0mph Max height: 173ft Engine used: 2 times Boosters used: 5 times https://ehmorris.com/lander/
Unbelievable, the crater is visible from Earth
Score: 309.4 point crash
Speed: 2607.1mph
Angle: 176.2°
Time: 293 seconds
Flips: 0
Max speed: 2607.1mph
Max height: 174828ft
Engine used: 6 times
Boosters used: 54 times
https://ehmorris.com/lander/
lol (and now I see others have already beaten this...)Score: 63.6 point landing Speed: 4.9mph Angle: 4.1° Time: 26 seconds Flips: 0 Max speed: 21.5mph Max height: 236ft Engine used: 30 times Boosters used: 8 times https://ehmorris.com/lander/
Unbelievable, the crater is visible from Earth
Score: 314.8 point crash
Speed: 2657.5mph
Angle: 174.1°
Time: 471 seconds
Flips: 0
Max speed: 2657.5mph
Max height: 179734ft
Engine used: 4 times
Boosters used: 83 times
Score: 324.3 point crash
Speed: 2900.4mph
Angle: 16.7°
Time: 1943 seconds
Flips: 56
Max speed: 2900.4mph
Max height: 751071ft
Engine used: 14 times
Boosters used: 170 times
So, so close to a landing, but still a crash
Score: 1.6 point crash
Speed: 2.5mph
Angle: 12.2°
Time: 20 seconds
Flips: 0
Max speed: 34.5mph
Max height: 221ft
Engine used: 20 times
Boosters used: 14 times
https://ehmorris.com/lander/
This is my best attempt for now: A good landing, keep trying
Score: 84.1 point landing
Speed: 4.5mph
Angle: 0.0°
Time: 23 seconds
Flips: 0
Max speed: 32.5mph
Max height: 221ft
Engine used: 26 times
Boosters used: 13 times
https://ehmorris.com/lander/ Very nice landing, amazing
Score: 92.2 point landing Speed: 0.5mph Angle: 2.2° Time: 25 seconds Flips: 0 Max speed: 25.8mph Max height: 221ft Engine used: 27 times Boosters used: 25 timesVery nice landing, amazing
Score: 93.9 point landing Speed: 2.2mph Angle: 0.1° Time: 17 seconds Flips: 0 Max speed: 24.4mph Max height: 236ft Engine used: 9 times Boosters used: 15 times
What is this, Apollo 15?
The left-right feel swapped to me, but I fail to give a factual reason.
Also reminds me of two 90s era DOS games: Ugh and some other about landing on Moon. Similar to yours, but the lander looked like a small tower/crate (for lack of better description).
Basically a fender bender, but you landed
Score: 45.4 point landing
Speed: 3.5mph
Angle: 9.5°
Time: 62 seconds
Flips: 18
Max speed: 86.8mph
Max height: 1276ft
Engine used: 32 times
Boosters used: 55 times Just shy of a good landing
Score: 78.3 point landing
Speed: 5.5mph
Angle: 0.3°
Time: 577 seconds
Flips: 206
Max speed: 302.4mph
Max height: 12012ft
Engine used: 69 times
Boosters used: 89 times Unbelievable, the crater is visible from Earth
Score: 143.9 point crash
Speed: 1259.8mph
Angle: 35.0°
Time: 629 seconds
Flips: 1709
Max speed: 1259.8mph
Max height: 44983ft
Engine used: 1 times
Boosters used: 58 timesNear-perfect landing, super smooth
Score: 96.5 point landing Speed: 1.1mph Angle: 0.7° Time: 45 seconds Flips: 0 Max speed: 43.7mph Max height: 256ft Engine used: 73 times Boosters used: 37 times https://ehmorris.com/lander/
---
I see it took you about seven months from "Initial Commit" to its current state. How did you stay on track all that time?
The older commits were part of a previous idea that I abandoned, then a few weeks ago I deleted almost everything and gave it another try.
Thanks for playing!
Would be interesting to see, if optimal control would do just that or use many short bursts.
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.Impressive speed, impressive angle - you crashed with style
Score: 89.2 point crash Speed: 761.4mph Angle: 41.4° Time: 82 seconds Flips: 0 Max speed: 761.4mph Max height: 344ft Engine used: 97 times Boosters used: 45 times https://ehmorris.com/lander/
- the game doesn’t let you play without knowing how to use the controls, and it shows them in real time - whenever you tap, the tap area lights up.
Small Details that make a difference!
If there were a fuel limit, or if there were some scoring category that showed whether your rocket stayed under a reasonable height, that would make scoring more comparable for everyone.
Also, could the trajectory stay visible at all times? That would help plan burns better.
IMO it looked like a big noodle, and the "needle" at the bottom bounces around distractingly. Plus, without the help all the time, it's a little harder!
Perfect landing, incredible, you can’t get better than this
Score: 99.2 point landing
Speed: 1.0mph
Angle: 0.2°
Time: 52 seconds
Flips: 0
Max speed: 31.5mph
Max height: 389ft
Engine used: 99 times
Boosters used: 7 times
https://ehmorris.com/lander/
I think my initial conditions were advantageous..Great game!
Some people have managed to use MILP solvers to optimally solve some of the other problems
Code here: https://github.com/void4/qewasd
Very nice landing, amazing
Score: 90.1 point landing
Speed: 2.8mph
Angle: 0.4°
Time: 9 seconds
Flips: 0
Max speed: 38.7mph
Max height: 240ft
Engine used: 10 times
Boosters used: 10 times
https://ehmorris.com/lander/131 point crash - https://i.ibb.co/YdJ1c8B/131.png 426 max speed landing - https://i.ibb.co/5k5Csjt/Max-Speed426.png
Score: 97.5 point landing Speed: 1.4mph Angle: 0.2° Time: 17 seconds Flips: 0 Max speed: 53.3mph Max height: 377ft Engine used: 15 times Boosters used: 12 times https://ehmorris.com/lander/
A solid “C” landing
Score: 71.9 point landing
Speed: 4.7mph
Angle: 2.5°
Time: 276 seconds
Flips: 27
Max speed: 114.4mph
Max height: 1323ft
Engine used: 58 times
Boosters used: 63 times
https://ehmorris.com/lander/ I don’t think we’re getting back to Earth
Score: 34.4 point crash
Speed: 187.5mph
Angle: 122.8°
Time: 88 seconds
Flips: 7
Max speed: 187.5mph
Max height: 2336ft
Engine used: 11 times
Boosters used: 49 times
https://ehmorris.com/lander/
Amazing. A fast crash, but it could be faster
Score: 82.9 point crash
Speed: 689.8mph
Angle: 56.2°
Time: 79 seconds
Flips: 0
Max speed: 689.8mph
Max height: 725ft
Engine used: 3 times
Boosters used: 46 times
https://ehmorris.com/lander/Couple thoughts:
* I first played this on my phone and the controls are basically backwards, touching right side of screen activates left booster. May be a subjective preference but when I went to a desktop and used the arrow keys (right key -> right booster) that was way more intuitive.
* Does it consider sideways velocity in judgment? Like 5MPH up and down vs a little bit sideways.
* For the love of Smoot please let me change to metric. Angles in radians would be fun too.
Dunno how much complexity you want to add, but limited fuel would be a nice challenge to add. Or landing spot which is moving (up and down or sideways).
Score: 198.9 point crash Speed: 1,600.2mph Angle: 179.0° Time: 336 seconds Flips: 2 Max speed: 1,600.2mph Max height: 55,433ft Engine used: 7 times Boosters used: 97 times https://ehmorris.com/lander/
Score: 465.6 point crash
Speed: 4010.5mph
Angle: 178.0°
Time: 986 seconds
Flips: 509
Max speed: 4010.5mph
Max height: 409430ft
Engine used: 4 times
Boosters used: 126 times
It's 1 AM, I need to go to sleep...
One thing that would be interesting would be a mode where you have limited fuel.
Also, the ability to set different buttons would be good. Towards the end of the landing I want to use one hand for left-right, and the other for the booster rocket, and this is awkward.
Perfect landing, incredible, you can’t get better than this
Score: 99.3 point landing
Speed: 0.2mph
Angle: 1.0°
Time: 22 seconds
Flips: 0
Max speed: 33.6mph
Max height: 227ft
Engine used: 12 times
Boosters used: 11 times
https://ehmorris.com/lander/Terrible landing, you need to land slow and straight
Score: 18.6 point landing Speed: 10.0mph Angle: 8.9° Time: 23 seconds Flips: 0 Max speed: 22.5mph Max height: 248ft Engine used: 25 times Boosters used: 16 times https://ehmorris.com/lander/
Score: 75.8 point crash Speed: 509.3mph Angle: 172.9° Time: 101 seconds Flips: 0 Max speed: 509.3mph Max height: 6618ft Engine used: 8 times Boosters used: 42 times https://ehmorris.com/lander/
A near-crash, way too fast
Score: 35.0 point landing
Speed: 9.7mph
Angle: 5.6°
Time: 8 seconds
Flips: 0
Max speed: 35.9mph
Max height: 197ft
Engine used: 2 times
Boosters used: 6 times
Score: 53.6 point landing Speed: 9.8mph Angle: 1.4° Time: 566 seconds Flips: 182 Max speed: 635.2mph Max height: 62510ft Engine used: 109 times Boosters used: 145 times https://ehmorris.com/lander/
Score: 345.1 point crash
Speed: 2928.9mph
Angle: 175.6°
Time: 696 seconds
Flips: 28
Max speed: 2928.9mph
Max height: 299886ft
Engine used: 37 times
Boosters used: 194 times
https://ehmorris.com/lander/Score: 34.7 point landing Speed: 5.2mph Angle: 10.1° Time: 28 seconds Flips: 1 Max speed: 25.5mph Max height: 138ft Engine used: 16 times Boosters used: 19 times https://ehmorris.com/lander/
Near-perfect landing, super smooth
Score: 95.5 point landing
Speed: 1.9mph
Angle: 0.1°
Time: 57 seconds
Flips: 0
Max speed: 31.6mph
Max height: 147ft
Engine used: 82 times
Boosters used: 33 times
https://ehmorris.com/lander/ Perfect landing, incredible, you can’t get better than this
Score: 101.1 point landing
Speed: 0.7mph
Angle: 0.1°
Time: 26 seconds
Flips: 0
Max speed: 32.4mph
Max height: 194ft
Engine used: 53 times
Boosters used: 30 timeshttps://theintelligentbook.com/thinkingaboutprogramming/#/de...
(programmable lander)
A good landing, keep trying
Score: 82.2 point landing
Speed: 4.3mph
Angle: 0.7°
Time: 17 seconds
Flips: 0
Max speed: 34.7mph
Max height: 210ft
Engine used: 7 times
Boosters used: 7 times
A good landing, keep trying
Score: 83.5 point landing
Speed: 3.8mph
Angle: 0.8°
Time: 44 seconds
Flips: 0
Max speed: 32.1mph
Max height: 257ft
Engine used: 25 times
Boosters used: 19 times
https://ehmorris.com/lander/The game is a lot easier and a lot more enjoyable to play on OSX. I reckon it has something to do with the input handling.
I think speed should be in ft/s to match height in ft. IIRC on Apollo they used ft/s for descent speeds. (an option for metric would be nice also)
Just managed to get a 98.5, which I think was mostly luck.
Time: 8 seconds
Flips: 0 Max speed: 39.0mph Max height: 173ft Engine used: 2 times Boosters used: 5 times
But why does it consume 100% CPU when sitting at the results screen?