szhu
Joined 12 years ago
Joined 12 years ago
If the friend should only say yes if they really want to, then that's ask culture.
If the friend should feel obligated to say yes, then that's guess culture.
The only difference here is that the request is worded differently (as a statement rather than as a question), which is simply close friends adopting their own language conventions, a slightly-related but independent concept.
Let me know if you can still reproduce the bug!
The autopilot now scores a "perfect landing" almost every single time, it lands very noticeably faster, and the code no longer contains a complicated, trial-by-error formula!
I got my first 103+ point landing! (It does this about half the time now)
https://user-images.githubusercontent.com/1570168/224399420-...
https://user-images.githubusercontent.com/1570168/224370129-...
https://user-images.githubusercontent.com/1570168/224369935-...
http://students.cs.ucl.ac.uk/schoolslab/projects/HT5/
from the readme here: https://github.com/ehmorris/lunar-lander
(accepting PRs!)
I agree that the target velocity calculation is off though. I was excited that I came up with something reasonably theoretically correct for correcting rotation... and for figuring out when to fire the engines I just gave up and eyeballed it :)
But unfortunately none of the lander's stats are exposed as global variables, so the only way I could make the autopilot was by modifying the existing code. (My commits are actually broken down exactly like this: a commit to expose the necessary variables globally, and another to actually add the autopilot.)
I would also love to be able to play it in the original game though, so I made a PR! I think it would be cool for it to be able to be activated as an easter egg.