Skip to content

Commit a2215f4

Browse files
committed
Revert "Fix bug in Lunar: wrong capsule weight."
This reverts commit 52e1bf4. The original commit modified the game away from what was in BASIC Computer Games, replacing it with the value from the original FOCAL version. The difference was intentional, as the introductory text makes clear, which is also in the README.md here: "To make the landing more of a challenge, but more closely approximate the real Apollo LEM capsule, you should make the available fuel at the start (N) equal to 16,000 lbs, and the weight of the capsule (M) equal to 32,500 lbs." Here we bring the value back into line with the BASIC Computer Games book & the README.md text. If we wanted to keep the FOCAL value, we should update the text in the README.md to explain why. See issue #867
1 parent 456f228 commit a2215f4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

59_Lunar_LEM_Rocket/javascript/lunar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ async function main()
113113
print("\n");
114114
a = 120;
115115
v = 1;
116-
m = 32500;
116+
m = 33000;
117117
n = 16500;
118118
g = 1e-3;
119119
z = 1.8;

59_Lunar_LEM_Rocket/lunar.bas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
110 PRINT: PRINT: PRINT: PRINT "GOOD LUCK"
1313
120 L=0
1414
130 PRINT: PRINT "SEC","MI + FT","MPH","LB FUEL","BURN RATE":PRINT
15-
140 A=120:V=1:M=32500:N=16500:G=1E-03:Z=1.8
15+
140 A=120:V=1:M=33000:N=16500:G=1E-03:Z=1.8
1616
150 PRINT L,INT(A);INT(5280*(A-INT(A))),3600*V,M-N,:INPUT K:T=10
1717
160 IF M-N<1E-03 THEN 240
1818
170 IF T<1E-03 THEN 150

59_Lunar_LEM_Rocket/python/lunar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def advance(self, delta_t: float) -> None:
127127
class Capsule:
128128
altitude: float = 120 # in miles above the surface
129129
velocity: float = 1 # downward
130-
m: float = 32500 # mass_with_fuel
130+
m: float = 33000 # mass_with_fuel
131131
n: float = 16500 # mass_without_fuel
132132
g: float = 1e-3
133133
z: float = 1.8

0 commit comments

Comments
 (0)