Deutsch English Français Italiano |
<lde3meF8ic2U1@mid.individual.net> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: rbowman <bowman@montana.com> Newsgroups: comp.os.linux.advocacy Subject: Re: More Fun Stuff From Lunar Lander Date: 18 Jun 2024 18:58:23 GMT Lines: 23 Message-ID: <lde3meF8ic2U1@mid.individual.net> References: <66699f8c$0$966$882e4bbb@reader.netnews.com> <slrnv6l2vk.24pu.candycanearter07@candydeb.host.invalid> <666b0963$0$985$882e4bbb@reader.netnews.com> <ld0olnF7p22U1@mid.individual.net> <666b43c2$0$966$882e4bbb@reader.netnews.com> <ld19dnFa6idU1@mid.individual.net> <666c4979$0$2363133$882e4bbb@reader.netnews.com> <ld3affFja99U1@mid.individual.net> <666c8888$0$7063$882e4bbb@reader.netnews.com> <ld4cslFnt9iU1@mid.individual.net> <2qtu6jdgrvmbrrcl5on1iec130l8q660jo@4ax.com> <ld9s6dFj37eU1@mid.individual.net> <v4rfud$18eq9$6@dont-email.me> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net wKL9F/aJkp5f/+X482IiDgcoCupxx1Cl/P9BLTL/SgnExYDjEs Cancel-Lock: sha1:73w/8Ofv+Ijee6eFH7KYuFNrT0U= sha256:k+PFofFMzbzr8bRzoG+PjFSY20oTlc4BkZit8iZqKCE= User-Agent: Pan/0.149 (Bellevue; 4c157ba) Bytes: 2124 On Tue, 18 Jun 2024 08:19:25 -0000 (UTC), Lawrence D'Oliveiro wrote: > There are Fortran and Rust versions already available: > <https://www.cs.brandeis.edu/~storer/LunarLander/LunarLander.html>. I'd found the C version. The comments on the globals helped a lot. Z, the thrust per pound of fuel is arbitrarily set to 1.8. I'm not sure about setting G (gravity) to .001. As a game it doesn't make a difference but I don't think it's correct. > >> Spreading out the polynomial might help. For added obfuscation 420 has >> Q*Q and 430 has Q^2. > > The guy’s father was a physicist, who helped him with the maths. This is > the kind of code that physicists would write. I worked with a PhD chemist with a similar style but he used FORTRAN. Unraveling it and converting it to 8049 assembler for a handheld device was interesting.