mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-12 15:50:20 -08:00
Fix bug in Lunar: wrong capsule weight.
Must be 32500 lbs, not 33000.
This commit is contained in:
@@ -113,7 +113,7 @@ async function main()
|
||||
print("\n");
|
||||
a = 120;
|
||||
v = 1;
|
||||
m = 33000;
|
||||
m = 32500;
|
||||
n = 16500;
|
||||
g = 1e-3;
|
||||
z = 1.8;
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
110 PRINT: PRINT: PRINT: PRINT "GOOD LUCK"
|
||||
120 L=0
|
||||
130 PRINT: PRINT "SEC","MI + FT","MPH","LB FUEL","BURN RATE":PRINT
|
||||
140 A=120:V=1:M=33000:N=16500:G=1E-03:Z=1.8
|
||||
140 A=120:V=1:M=32500:N=16500:G=1E-03:Z=1.8
|
||||
150 PRINT L,INT(A);INT(5280*(A-INT(A))),3600*V,M-N,:INPUT K:T=10
|
||||
160 IF M-N<1E-03 THEN 240
|
||||
170 IF T<1E-03 THEN 150
|
||||
|
||||
@@ -127,7 +127,7 @@ class SimulationClock:
|
||||
class Capsule:
|
||||
altitude: float = 120 # in miles above the surface
|
||||
velocity: float = 1 # downward
|
||||
m: float = 33000 # mass_with_fuel
|
||||
m: float = 32500 # mass_with_fuel
|
||||
n: float = 16500 # mass_without_fuel
|
||||
g: float = 1e-3
|
||||
z: float = 1.8
|
||||
|
||||
Reference in New Issue
Block a user