(42S/DM42/Free42/Plus42) Classic Moon Simulator - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Software Libraries (/forum-10.html) +--- Forum: General Software Library (/forum-13.html) +--- Thread: (42S/DM42/Free42/Plus42) Classic Moon Simulator (/thread-18945.html) |
(42S/DM42/Free42/Plus42) Classic Moon Simulator - Eddie W. Shore - 10-10-2022 03:10 AM Variables: X: Position V: Velocity F: Fuel G: Gravity B: Amount of Fuel to burn Initial Values (from the HP-33E Applications): X = 500 V = -50 F = 120 G = 5 I wasn't sure about the win condition (X = 0, V = 0?). I show the position, velocity, and fuel after each successful turn. Enter the amount of units to burn at the burn prompt. Download here (raw file): https://drive.google.com/file/d/1YsYzIMxALuRx_MHSSzGFFEQJdrN656DS/view?usp=sharing Code: 00 { 184-Byte Prgm } Source: HP-33 Applications. Hewlett Packard. Corvallis, OR. March 1979 |