oregon1975.bas 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626
  1. 8 REM MINNESOTA EDUCATIONAL COMPUTING CONSORTIUM STAFF
  2. 9 REM PROGRAMMING REVISIONS BY DON RAWITSCH - 1975
  3. 11 REM CURRENT VERSION - 3/27/75
  4. 15 REM **FOR THE MEANING OF THE VARIABLES USED, LIST LINES 4900-4960**
  5. 25 PRINT "DO YOU NEED INSTRUCTIONS (YES/NO)";
  6. 30 DIM C$[5]
  7. 35 INPUT C$
  8. 40 IF C$="NO" THEN 400
  9. 45 PRINT LIN(2)
  10. 59 REM ***INSTRUCTIONS***
  11. 60 PRINT "THIS PROGRAM SIMULATES A TRIP OVER THE OREGON TRAIL FROM"
  12. 65 PRINT "INDEPENDENCE, MISSOURI TO OREGON CITY, OREGON IN 1847."
  13. 70 PRINT "YOUR FAMILY OF FIVE WILL COVER THE 2000 MILE OREGON TRAIL"
  14. 75 PRINT "IN 5-6 MONTHS --- IF YOU MAKE IT ALIVE."
  15. 80 PRINT
  16. 85 PRINT "YOU HAD SAVED $900 TO SPEND FOR THE TRIP, AND YOU'VE JUST"
  17. 90 PRINT " PAID $200 FOR A WAGON."
  18. 95 PRINT "YOU WILL NEED TO SPEND THE REST OF YOUR MONEY ON THE"
  19. 100 PRINT " FOLLOWING ITEMS:"
  20. 105 PRINT
  21. 110 PRINT " OXEN - YOU CAN SPEND $200-$300 ON YOUR TEAM"
  22. 115 PRINT " THE MORE YOU SPEND, THE FASTER YOU'LL GO"
  23. 120 PRINT " BECAUSE YOU'LL HAVE BETTER ANIMALS"
  24. 125 PRINT
  25. 130 PRINT " FOOD - THE MORE YOU HAVE, THE LESS CHANCE THERE"
  26. 135 PRINT " IS OF GETTING SICK"
  27. 140 PRINT
  28. 145 PRINT " AMMUNITION - $1 BUYS A BELT OF 50 BULLETS"
  29. 150 PRINT " YOU WILL NEED BULLETS FOR ATTACKS BY ANIMALS"
  30. 155 PRINT " AND BANDITS, AND FOR HUNTING FOOD"
  31. 160 PRINT
  32. 165 PRINT " CLOTHING - THIS IS ESPECIALLY IMPORTANT FOR THE COLD"
  33. 170 PRINT " WEATHER YOU WILL ENCOUNTER WHEN CROSSING"
  34. 175 PRINT " THE MOUNTAINS"
  35. 180 PRINT
  36. 185 PRINT " MISCELLANEOUS SUPPLIES - THIS INCLUDES MEDICINE AND"
  37. 190 PRINT " OTHER THINGS YOU WILL NEED FOR SICKNESS"
  38. 195 PRINT " AND EMERGENCY REPAIRS"
  39. 205 PRINT LIN(2)
  40. 210 PRINT "YOU CAN SPEND ALL YOUR MONEY BEFORE YOU START YOUR TRIP -"
  41. 215 PRINT "OR YOU CAN SAVE SOME OF YOUR CASH TO SPEND AT FORTS ALONG"
  42. 220 PRINT "THE WAY WHEN YOU RUN LOW. HOWEVER, ITEMS COST MORE AT"
  43. 225 PRINT "THE FORTS. YOU CAN ALSO GO HUNTING ALONG THE WAY TO GET"
  44. 230 PRINT "MORE FOOD."
  45. 235 PRINT "WHENEVER YOU HAVE TO USE YOUR TRUSTY RIFLE ALONG THE WAY,"
  46. 240 PRINT "YOU WILL SEE THE WORDS: TYPE BANG. THE FASTER YOU TYPE"
  47. 245 PRINT "IN THE WORD 'BANG' AND HIT THE 'RETURN' KEY, THE BETTER"
  48. 250 PRINT "LUCK YOU'LL HAVE WITH YOUR GUN."
  49. 260 PRINT
  50. 262 PRINT "WHEN ASKED TO ENTER MONEY AMOUNTS, DON'T USE A '$'."
  51. 263 PRINT
  52. 265 PRINT "GOOD LUCK!!!"
  53. 399 REM ***INITIAL PURCHASES***
  54. 400 X1=-1
  55. 405 K8=S4=F1=F2=M=M9=D3=0
  56. 410 PRINT LIN(2)
  57. 415 PRINT "HOW MUCH DO YOU WANT TO SPEND ON YOUR OXEN TEAM";
  58. 420 INPUT A
  59. 425 IF A >= 200 THEN 440
  60. 430 PRINT "NOT ENOUGH"
  61. 435 GOTO 415
  62. 440 IF A <= 300 THEN 455
  63. 445 PRINT "TOO MUCH"
  64. 450 GOTO 415
  65. 455 PRINT "HOW MUCH DO YOU WANT TO SPEND ON FOOD";
  66. 460 INPUT F
  67. 470 IF F >= 0 THEN 485
  68. 475 PRINT "IMPOSSIBLE"
  69. 480 GOTO 455
  70. 485 PRINT "HOW MUCH DO YOU WANT TO SPEND ON AMMUNITION";
  71. 490 INPUT B
  72. 495 IF B >= 0 THEN 510
  73. 500 PRINT "IMPOSSIBLE"
  74. 505 GOTO 485
  75. 510 PRINT "HOW MUCH DO YOU WANT TO SPEND ON CLOTHING";
  76. 515 INPUT C
  77. 520 IF C >= 0 THEN 535
  78. 525 PRINT "IMPOSSIBLE"
  79. 530 GOTO 510
  80. 535 PRINT "HOW MUCH DO YOU WANT TO SPEND ON MISCELANEOUS SUPPLIES";
  81. 540 INPUT M1
  82. 545 IF M1 >= 0 THEN 560
  83. 550 PRINT "IMPOSSIBLE"
  84. 555 GOTO 535
  85. 560 T=700-A-F-B-C-M1
  86. 565 IF T >= 0 THEN 580
  87. 570 PRINT "YOU OVERSPENT--YOU ONLY HAD $700 TO SPEND. BUY AGAIN"
  88. 575 GOTO 410
  89. 580 B=50*B
  90. 585 PRINT "AFTER ALL YOUR PURCHASES, YOU NOW HAVE";T;"DOLLARS LEFT"
  91. 590 PRINT
  92. 595 PRINT "MONDAY MARCH 29 1847"
  93. 600 PRINT
  94. 605 GOTO 1000
  95. 700 IF M >= 2040 OR D3>17 THEN 4000
  96. 709 REM ***SETTING DATE***
  97. 710 D3=D3+1
  98. 715 PRINT
  99. 720 PRINT "MONDAY ";
  100. 725 IF D3>10 THEN 735
  101. 730 GOTO D3 OF 740,750,760,770,780,790,800,810,820,830
  102. 735 GOTO D3-10 OF 840,850,860,870,880,890,900
  103. 740 PRINT "APRIL 12 ";
  104. 744 GOTO 910
  105. 750 PRINT "APRIL 26 ";
  106. 755 GOTO 910
  107. 760 PRINT "MAY 10 ";
  108. 765 GOTO 910
  109. 770 PRINT "MAY 24 ";
  110. 775 GOTO 910
  111. 780 PRINT "JUNE 7 ";
  112. 785 GOTO 910
  113. 790 PRINT "JUNE 21 ";
  114. 795 GOTO 910
  115. 800 PRINT "JULY 5 ";
  116. 805 GOTO 910
  117. 810 PRINT "JULY 19 ";
  118. 815 GOTO 910
  119. 820 PRINT "AUGUST 2 ";
  120. 825 GOTO 910
  121. 830 PRINT "AUGUST 16 ";
  122. 835 GOTO 910
  123. 840 PRINT "AUGUST 31 ";
  124. 845 GOTO 910
  125. 850 PRINT "SEPTEMBER 13 ";
  126. 855 GOTO 910
  127. 860 PRINT "SEPTEMBER 27 ";
  128. 865 GOTO 910
  129. 870 PRINT "OCTOBER 11 ";
  130. 875 GOTO 910
  131. 880 PRINT "OCTOBER 25 ";
  132. 885 GOTO 910
  133. 890 PRINT "NOVEMBER 8 ";
  134. 895 GOTO 910
  135. 900 PRINT "NOVEMBER 22 ";
  136. 910 PRINT "1847"
  137. 915 PRINT
  138. 999 REM ***BEGINNING EACH TURN***
  139. 1000 IF F >= 0 THEN 1015
  140. 1010 F=0
  141. 1015 IF B >= 0 THEN 1025
  142. 1020 B=0
  143. 1025 IF C >= 0 THEN 1035
  144. 1030 C=0
  145. 1035 IF M1 >= 0 THEN 1045
  146. 1040 M1=0
  147. 1045 IF F >= 12 THEN 1055
  148. 1050 PRINT "YOU'D BETTER DO SOME HUNTING OR BUY FOOD AND SOON!!!!"
  149. 1055 F=INT(F)
  150. 1060 B=INT(B)
  151. 1065 C=INT(C)
  152. 1070 M1=INT(M1)
  153. 1075 T=INT(T)
  154. 1080 M=INT(M)
  155. 1085 M2=M
  156. 1090 IF S4=1 THEN 1105
  157. 1095 IF K8=1 THEN 1105
  158. 1100 GOTO 1130
  159. 1105 T=T-20
  160. 1110 IF T<0 THEN 3520
  161. 1115 PRINT "DOCTOR'S BILL IS $20"
  162. 1120 LET K8=S4=0
  163. 1130 IF M9=1 THEN 1145
  164. 1135 PRINT "TOTAL MILEAGE IS";M
  165. 1140 GOTO 1160
  166. 1145 PRINT "TOTAL MILEAGE IS 950"
  167. 1150 M9=0
  168. 1160 PRINT "FOOD","BULLETS","CLOTHING","MISC. SUPP.","CASH"
  169. 1165 PRINT F,B,C,M1,T
  170. 1300 IF X1=-1 THEN 1350
  171. 1305 X1=X1*-1
  172. 1310 PRINT "DO YOU WANT TO (1) STOP AT THE NEXT FORT, (2) HUNT, ";
  173. 1315 PRINT "OR (3) CONTINUE"
  174. 1320 INPUT X
  175. 1325 IF X>2 THEN 1340
  176. 1330 IF X<1 THEN 1340
  177. 1332 LET X=INT(X)
  178. 1335 GOTO 1400
  179. 1340 LET X=3
  180. 1345 GOTO 1400
  181. 1350 PRINT "DO YOU WANT TO (1) HUNT, OR (2) CONTINUE"
  182. 1355 INPUT X
  183. 1360 IF X=1 THEN 1370
  184. 1365 LET X=2
  185. 1370 LET X=X+1
  186. 1375 IF X=3 THEN 1395
  187. 1380 IF B>39 THEN 1395
  188. 1385 PRINT "TOUGH---YOU NEED MORE BULLETS TO GO HUNTING"
  189. 1390 GOTO 1350
  190. 1395 X1=X1*-1
  191. 1400 GOTO X OF 1500,1700,1800
  192. 1499 REM ***STOPPING AT FORT***
  193. 1500 PRINT "ENTER WHAT YOU WISH TO SPEND ON THE FOLLOWING"
  194. 1505 PRINT "FOOD";
  195. 1510 GOSUB 1520
  196. 1515 GOTO 1555
  197. 1520 INPUT P
  198. 1525 IF P<0 THEN 1550
  199. 1530 T=T-P
  200. 1535 IF T >= 0 THEN 1550
  201. 1537 PRINT "YOU DON'T HAVE THAT MUCH--KEEP YOUR SPENDING DOWN"
  202. 1540 T=T+P
  203. 1545 P=0
  204. 1550 RETURN
  205. 1555 F=F+2/3*P
  206. 1560 PRINT "AMMUNITION";
  207. 1565 GOSUB 1520
  208. 1570 LET B=INT(B+2/3*P*50)
  209. 1575 PRINT "CLOTHING";
  210. 1580 GOSUB 1520
  211. 1585 C=C+2/3*P
  212. 1590 PRINT "MISCELLANEOUS SUPPLIES";
  213. 1595 GOSUB 1520
  214. 1600 M1=M1+2/3*P
  215. 1605 M=M-45
  216. 1610 GOTO 1800
  217. 1699 REM ***HUNTING***
  218. 1700 IF B>39 THEN 1715
  219. 1705 PRINT "TOUGH---YOU NEED MORE BULLETS TO GO HUNTING"
  220. 1710 GOTO 1310
  221. 1715 M=M-45
  222. 1720 GOSUB 4500
  223. 1725 IF B1 <= 1 THEN 1755
  224. 1730 IF 100*RND(0)<13*B1 THEN 1780
  225. 1735 F=F+48-2*B1
  226. 1740 PRINT "NICE SHOT--RIGHT THROUGH THE NECK--FEAST TONIGHT!!"
  227. 1745 B=B-10-3*B1
  228. 1750 GOTO 1800
  229. 1752 REM **BELLS IN LINE 1755**
  230. 1755 PRINT "RI"'7"GHT BETWEE"'7"N THE EYE"'7"S---YOU GOT A"'7" BIG ONE!!"'7"!!"
  231. 1765 F=F+52+RND(0)*6
  232. 1770 B=B-10-RND(0)*4
  233. 1775 GOTO 1800
  234. 1780 PRINT "SORRY---NO LUCK TODAY"
  235. 1800 IF F >= 13 THEN 1900
  236. 1805 GOTO 3500
  237. 1899 REM ***EATING***
  238. 1900 PRINT "DO YOU WANT TO EAT (1) POORLY (2) MODERATELY"
  239. 1902 PRINT "OR (3) WELL";
  240. 1905 INPUT E
  241. 1910 IF E>3 THEN 1900
  242. 1915 IF E<1 THEN 1900
  243. 1920 LET E=INT(E)
  244. 1930 LET F=F-8-5*E
  245. 1935 IF F >= 0 THEN 2000
  246. 1940 F=F+8+5*E
  247. 1945 PRINT "YOU CAN'T EAT THAT WELL"
  248. 1950 GOTO 1900
  249. 2000 LET M=M+200+(A-220)/5+10*RND(0)
  250. 2005 L1=C1=0
  251. 2099 REM ***RIDERS ATTACK***
  252. 2100 IF RND(0)*10>((M/100-4)^2+72)/((M/100-4)^2+12)-1 THEN 2500
  253. 2105 PRINT "RIDERS AHEAD. THEY ";
  254. 2110 S5=0
  255. 2115 IF RND(0)<.8 THEN 2130
  256. 2120 PRINT "DON'T ";
  257. 2125 S5=1
  258. 2130 PRINT "LOOK HOSTILE"
  259. 2135 PRINT "TACTICS"
  260. 2140 PRINT "(1) RUN (2) ATTACK (3) CONTINUE (4) CIRCLE WAGONS"
  261. 2145 PRINT "IF YOU RUN YOU'LL GAIN TIME BUT WEAR DOWN YOUR OXEN"
  262. 2150 PRINT "IF YOU CIRCLE YOU'LL LOSE TIME"
  263. 2155 IF RND(0)>.2 THEN 2165
  264. 2160 S5=1-S5
  265. 2165 INPUT T1
  266. 2170 IF T1<1 THEN 2140
  267. 2175 IF T1>4 THEN 2140
  268. 2180 T1=INT(T1)
  269. 2185 IF S5=1 THEN 2330
  270. 2190 IF T1>1 THEN 2220
  271. 2195 M=M+20
  272. 2200 M1=M1-15
  273. 2205 B=B-150
  274. 2210 A=A-40
  275. 2215 GOTO 2395
  276. 2220 IF T1>2 THEN 2285
  277. 2225 GOSUB 4500
  278. 2230 B=B-B1*40-80
  279. 2235 IF B1>1 THEN 2250
  280. 2240 PRINT "NICE SHOOTING---YOU DROVE THEM OFF"
  281. 2245 GOTO 2395
  282. 2250 IF B1 <= 4 THEN 2275
  283. 2255 PRINT "LOUSY SHOT---YOU GOT KNIFED"
  284. 2260 K8=1
  285. 2265 PRINT "YOU HAVE TO SEE OL' DOC BLANCHARD"
  286. 2270 GOTO 2395
  287. 2275 PRINT "KINDA SLOW WITH YOUR COLT .45"
  288. 2280 GOTO 2395
  289. 2285 IF T1>3 THEN 2310
  290. 2290 IF RND(0)>.8 THEN 2390
  291. 2295 LET B=B-150
  292. 2300 M1=M1-15
  293. 2305 GOTO 2395
  294. 2310 GOSUB 4500
  295. 2315 B=B-B1*30-80
  296. 2320 M=M-25
  297. 2325 GOTO 2235
  298. 2330 IF T1>1 THEN 2350
  299. 2335 M=M+15
  300. 2340 A=A-10
  301. 2345 GOTO 2395
  302. 2350 IF T1>2 THEN 2370
  303. 2355 M=M-5
  304. 2360 B=B-100
  305. 2365 GOTO 2395
  306. 2370 IF T1>3 THEN 2380
  307. 2375 GOTO 2395
  308. 2380 M=M-20
  309. 2385 GOTO 2395
  310. 2390 PRINT "THEY DID NOT ATTACK"
  311. 2392 GOTO 2500
  312. 2395 IF S5=0 THEN 2410
  313. 2400 PRINT "RIDERS WERE FRIENDLY, BUT CHECK FOR POSSIBLE LOSSES"
  314. 2405 GOTO 2500
  315. 2410 PRINT "RIDERS WERE HOSTILE--CHECK FOR LOSSES"
  316. 2415 IF B >= 0 THEN 2500
  317. 2420 PRINT "YOU RAN OUT OF BULLETS AND GOT MASSACRED BY THE RIDERS"
  318. 2425 GOTO 3600
  319. 2499 REM ***SELECTION OF EVENTS***
  320. 2500 LET D1=0
  321. 2505 RESTORE
  322. 2510 R1=100*RND(TIM(0))
  323. 2515 LET D1=D1+1
  324. 2520 IF D1=16 THEN 3020
  325. 2525 READ D
  326. 2530 IF R1>D THEN 2515
  327. 2535 DATA 6,11,13,15,17,22,32,35,37,42,44,54,64,69,95
  328. 2537 IF D1>10 THEN 2545
  329. 2540 GOTO D1 OF 2550,2570,2590,2615,2630,2645,2660,2690,2785,2810
  330. 2545 GOTO D1-10 OF 2825,2860,2885,2970,2990,3020
  331. 2550 PRINT "WAGON BREAKS DOWN--LOSE TIME AND SUPPLIES FIXING IT"
  332. 2555 LET M=M-15-5*RND(0)
  333. 2560 LET M1=M1-8
  334. 2565 GOTO 3100
  335. 2570 PRINT "OX INJURES LEG---SLOWS YOU DOWN REST OF TRIP"
  336. 2575 LET M=M-25
  337. 2580 LET A=A-20
  338. 2585 GOTO 3100
  339. 2590 PRINT "BAD LUCK---YOUR DAUGHTER BROKE HER ARM"
  340. 2595 PRINT "YOU HAD TO STOP AND USE SUPPLIES TO MAKE A SLING"
  341. 2600 M=M-5-4*RND(0)
  342. 2605 M1=M1-2-3*RND(0)
  343. 2610 GOTO 3100
  344. 2615 PRINT "OX WANDERS OFF---SPEND TIME LOOKING FOR IT"
  345. 2620 M=M-17
  346. 2625 GOTO 3100
  347. 2630 PRINT "YOUR SON GETS LOST---SPEND HALF THE DAY LOOKING FOR HIM"
  348. 2635 M=M-10
  349. 2640 GOTO 3100
  350. 2645 PRINT "UNSAFE WATER--LOSE TIME LOOKING FOR CLEAN SPRING"
  351. 2650 LET M=M-10*RND(0)-2
  352. 2655 GOTO 3100
  353. 2660 IF M>950 THEN 2935
  354. 2665 PRINT "HEAVY RAINS---TIME AND SUPPLIES LOST"
  355. 2670 F=F-10
  356. 2672 B=B-500
  357. 2675 M1=M1-15
  358. 2680 M=M-10*RND(0)-5
  359. 2685 GOTO 3100
  360. 2690 PRINT "BANDITS ATTACK"
  361. 2700 GOSUB 4500
  362. 2705 B=B-20*B1
  363. 2715 IF B >= 0 THEN 2735
  364. 2720 PRINT "YOU RAN OUT OF BULLETS---THEY GET LOTS OF CASH"
  365. 2725 T=T/3
  366. 2730 GOTO 2740
  367. 2735 IF B1 <= 1 THEN 2770
  368. 2740 PRINT "YOU GOT SHOT IN THE LEG AND THEY TOOK ONE OF YOUR OXEN"
  369. 2745 K8=1
  370. 2750 PRINT "BETTER HAVE A DOC LOOK AT YOUR WOUND"
  371. 2755 M1=M1-5
  372. 2760 A=A-20
  373. 2765 GOTO 3100
  374. 2770 PRINT "QUICKEST DRAW OUTSIDE OF DODGE CITY!!!"
  375. 2775 PRINT "YOU GOT 'EM!"
  376. 2780 GOTO 3100
  377. 2785 PRINT "THERE WAS A FIRE IN YOUR WAGON--FOOD AND SUPPLIES DAMAGED"
  378. 2790 F=F-40
  379. 2792 B=B-400
  380. 2795 LET M1=M1-RND(0)*8-3
  381. 2800 M=M-15
  382. 2805 GOTO 3100
  383. 2810 PRINT "LOSE YOUR WAY IN HEAVY FOG---TIME IS LOST"
  384. 2815 M=M-10-5*RND(0)
  385. 2820 GOTO 3100
  386. 2825 PRINT "YOU KILLED A POISONOUS SNAKE AFTER IT BIT YOU"
  387. 2830 B=B-10
  388. 2835 M1=M1-5
  389. 2840 IF M1 >= 0 THEN 2855
  390. 2845 PRINT "YOU DIE OF SNAKEBITE SINCE YOU HAVE NO MEDICINE"
  391. 2850 GOTO 3600
  392. 2855 GOTO 3100
  393. 2860 PRINT "WAGON GETS SWAMPED FORDING RIVER--LOSE FOOD AND CLOTHES"
  394. 2865 F=F-30
  395. 2870 C=C-20
  396. 2875 M=M-20-20*RND(0)
  397. 2880 GOTO 3100
  398. 2885 PRINT "WILD ANIMALS ATTACK!"
  399. 2887 GOSUB 4500
  400. 2889 IF B>39 THEN 2895
  401. 2890 PRINT "YOU WERE TOO LOW ON BULLETS--"
  402. 2891 PRINT "THE WOLVES OVERPOWERED YOU"
  403. 2892 K8=1
  404. 2893 GOTO 3555
  405. 2895 IF B1>2 THEN 2910
  406. 2900 PRINT "NICE SHOOTIN' PARDNER---THEY DIDN'T GET MUCH"
  407. 2905 GOTO 2915
  408. 2910 PRINT "SLOW ON THE DRAW---THEY GOT AT YOUR FOOD AND CLOTHES"
  409. 2915 B=B-20*B1
  410. 2920 C=C-B1*4
  411. 2925 F=F-B1*8
  412. 2930 GOTO 3100
  413. 2935 PRINT "COLD WEATHER---BRRRRRRR!---YOU ";
  414. 2940 IF C>22+4*RND(0) THEN 2955
  415. 2945 PRINT "DON'T ";
  416. 2950 C1=1
  417. 2955 PRINT "HAVE ENOUGH CLOTHING TO KEEP YOU WARM"
  418. 2960 IF C1=0 THEN 3100
  419. 2965 GOTO 4700
  420. 2970 PRINT "HAIL STORM---SUPPLIES DAMAGED"
  421. 2975 M=M-5-RND(0)*10
  422. 2977 B=B-200
  423. 2980 M1=M1-4-RND(0)*3
  424. 2985 GOTO 3100
  425. 2990 IF E=1 THEN 4700
  426. 2995 IF E=3 THEN 3010
  427. 3000 IF RND(0)>.25 THEN 4700
  428. 3005 GOTO 3100
  429. 3010 IF RND(0)<.5 THEN 4700
  430. 3015 GOTO 3100
  431. 3020 PRINT "HELPFUL INDIANS SHOW YOU WHERE TO FIND MORE FOOD"
  432. 3025 F=F+14
  433. 3030 GOTO 3100
  434. 3099 REM ***MOUNTAINS***
  435. 3100 IF M <= 950 THEN 700
  436. 3105 IF RND(0)*10>9-((M/100-15)^2+72)/((M/100-15)^2+12) THEN 3175
  437. 3110 PRINT "RUGGED MOUNTAINS"
  438. 3115 IF RND(0)>.1 THEN 3135
  439. 3120 PRINT "YOU GOT LOST---LOSE VALUABLE TIME TRYING TO FIND TRAIL!"
  440. 3125 M=M-60
  441. 3130 GOTO 3175
  442. 3135 IF RND(0)>.11 THEN 3160
  443. 3140 PRINT "WAGON DAMAGED!---LOSE TIME AND SUPPLIES"
  444. 3145 M1=M1-5
  445. 3147 B=B-200
  446. 3150 M=M-20-30*RND(0)
  447. 3155 GOTO 3175
  448. 3160 PRINT "THE GOING GETS SLOW"
  449. 3165 M=M-45-RND(0)/.02
  450. 3175 IF F1=1 THEN 3195
  451. 3180 F1=1
  452. 3185 IF RND(0)<.8 THEN 3300
  453. 3190 PRINT "YOU MADE IT SAFELY THROUGH SOUTH PASS--NO SNOW"
  454. 3195 IF M<1700 THEN 3215
  455. 3200 IF F2=1 THEN 3215
  456. 3205 F2=1
  457. 3210 IF RND(0)<.7 THEN 3300
  458. 3215 IF M>950 THEN 700
  459. 3220 M9=1
  460. 3225 GOTO 700
  461. 3300 PRINT "BLIZZARD IN MOUNTAIN PASS--TIME AND SUPPLIES LOST"
  462. 3305 L1=1
  463. 3310 F=F-25
  464. 3315 M1=M1-10
  465. 3317 B=B-300
  466. 3320 M=M-30-40*RND(0)
  467. 3325 IF C<18+2*RND(0) THEN 4700
  468. 3330 GOTO 3215
  469. 3499 REM ***DYING***
  470. 3500 PRINT "YOU RAN OUT OF FOOD AND STARVED TO DEATH"
  471. 3505 GOTO 3600
  472. 3520 LET T=0
  473. 3525 PRINT "YOU CAN'T AFFORD A DOCTOR"
  474. 3530 GOTO 3555
  475. 3550 PRINT "YOU RAN OUT MEDICAL SUPPLIES"
  476. 3555 PRINT "YOU DIED OF ";
  477. 3560 IF K8=1 THEN 3575
  478. 3565 PRINT "PNEUMONIA"
  479. 3570 GOTO 3600
  480. 3575 PRINT "INJURIES"
  481. 3600 PRINT
  482. 3602 PRINT "DO TO YOUR UNFORTUNATE SITUATION, THERE ARE A FEW"
  483. 3605 PRINT "FORMALITIES WE MUST GO THROUGH"
  484. 3610 PRINT
  485. 3615 PRINT "WOULD YOU LIKE A MINISTER?"
  486. 3620 INPUT C$
  487. 3630 PRINT "WOULD YOU LIKE A FANCY FUNERAL?"
  488. 3635 INPUT C$
  489. 3650 PRINT "WOULD YOU LIKE US TO INFORM YOUR NEXT OF KIN?"
  490. 3652 INPUT C$
  491. 3654 IF C$="YES" THEN 3670
  492. 3656 PRINT "YOUR AUNT NELLIE IN ST. LOUIS IS ANXIOUS TO HEAR"
  493. 3658 PRINT
  494. 3670 PRINT "WE THANK YOU FOR THIS INFORMATION AND WE ARE SORRY YOU"
  495. 3675 PRINT "DIDN'T MAKE IT TO THE GREAT TERRITORY OF OREGON"
  496. 3680 PRINT "BETTER LUCK NEXT TIME"
  497. 3685 PRINT
  498. 3690 PRINT
  499. 3695 PRINT TAB(30);"SINCERELY"
  500. 3700 PRINT
  501. 3705 PRINT TAB(17);"THE OREGON CITY CHAMBER OF COMMERCE"
  502. 3710 STOP
  503. 3999 REM ***FINAL TURN***
  504. 4000 F9=(2040-M2)/(M-M2)
  505. 4005 F=F+(1-F9)*(8+5*E)
  506. 4010 PRINT
  507. 4012 REM *BELLS IN LINES 4015, 4020*
  508. 4015 PRINT "YOU"'7" FINALLY ARRI"'7"VED AT ORE"'7"GON CITY"'7
  509. 4020 PRINT "AFTER"'7" 2040 LONG MILES"'7"---HOORAY!!"'7"!!!"
  510. 4025 PRINT
  511. 4030 F9=INT(F9*14)
  512. 4035 D3=D3*14+F9
  513. 4040 F9=F9+1
  514. 4045 IF F9<8 THEN 4055
  515. 4050 F9=F9-7
  516. 4055 GOTO F9 OF 4060,4070,4080,4090,4100,4110,4120
  517. 4060 PRINT "MONDAY ";
  518. 4065 GOTO 4125
  519. 4070 PRINT "TUESDAY ";
  520. 4075 GOTO 4125
  521. 4080 PRINT "WEDNESDAY ";
  522. 4085 GOTO 4125
  523. 4090 PRINT "THURSDAY ";
  524. 4095 GOTO 4125
  525. 4100 PRINT "FRIDAY ";
  526. 4105 GOTO 4125
  527. 4110 PRINT "SATURDAY ";
  528. 4115 GOTO 4125
  529. 4120 PRINT "SUNDAY ";
  530. 4125 IF D3>124 THEN 4145
  531. 4130 D3=D3-93
  532. 4135 PRINT "JULY ";D3;" 1847"
  533. 4140 GOTO 4215
  534. 4145 IF D3>155 THEN 4165
  535. 4150 D3=D3-124
  536. 4155 PRINT "AUGUST ";D3;" 1847"
  537. 4160 GOTO 4215
  538. 4165 IF D3>185 THEN 4185
  539. 4170 D3=D3-155
  540. 4175 PRINT "SEPTEMBER ";D3;" 1847"
  541. 4180 GOTO 4215
  542. 4185 IF D3>216 THEN 4205
  543. 4190 D3=D3-185
  544. 4195 PRINT "OCTOBER ";D3;" 1847"
  545. 4200 GOTO 4215
  546. 4205 D3=D3-216
  547. 4210 PRINT "NOVEMBER ";D3;" 1847"
  548. 4215 PRINT
  549. 4220 PRINT "FOOD","BULLETS","CLOTHING","MISC. SUPP.","CASH"
  550. 4230 IF B>0 THEN 4240
  551. 4235 LET B=0
  552. 4240 IF C>0 THEN 4250
  553. 4245 LET C=0
  554. 4250 IF M1>0 THEN 4260
  555. 4255 LET M1=0
  556. 4260 IF T>0 THEN 4270
  557. 4265 LET T=0
  558. 4270 IF F>0 THEN 4285
  559. 4275 LET F=0
  560. 4285 PRINT INT(F),INT(B),INT(C),INT(M1),INT(T)
  561. 4290 PRINT
  562. 4295 PRINT "PRESIDENT JAMES K. POLK SENDS YOU HIS"
  563. 4297 PRINT " HEARTIEST CONGRATULATIONS"
  564. 4300 PRINT
  565. 4305 PRINT TAB(11);"AND WISHES YOU A PROSPEROUS LIFE AHEAD"
  566. 4310 PRINT
  567. 4315 PRINT TAB(22);"AT YOUR NEW HOME"
  568. 4320 STOP
  569. 4499 REM ***SHOOTING SUB-ROUTINE***
  570. 4500 PRINT "TYPE BANG";
  571. 4505 B2=7
  572. 4510 C$=""
  573. 4515 ENTER #P,B2,B1,C$
  574. 4520 PRINT
  575. 4525 IF C$="BANG" THEN 4535
  576. 4530 B1=7
  577. 4535 RETURN
  578. 4699 REM ***ILLNESS SUB-ROUTINE***
  579. 4700 IF 100*RND(0)<10+35*(E-1) THEN 4740
  580. 4705 IF 100*RND(0)<100-(40/4^(E-1)) THEN 4760
  581. 4715 PRINT "SERIOUS ILLNESS---"
  582. 4720 PRINT "YOU MUST STOP FOR MEDICAL ATTENTION"
  583. 4725 M1=M1-10
  584. 4730 S4=1
  585. 4735 GOTO 4780
  586. 4740 PRINT "MILD ILLNESS---MEDICINE USED"
  587. 4745 M=M-5
  588. 4750 M1=M1-2
  589. 4755 GOTO 4780
  590. 4760 PRINT "BAD ILLNESS---MEDICINE USED"
  591. 4765 M=M-5
  592. 4770 M1=M1-5
  593. 4780 IF M1<0 THEN 3550
  594. 4785 IF L1=1 THEN 3215
  595. 4790 GOTO 3100
  596. 4900 REM ***IDENDIFICATION OF VARIABLES IN THE PROGRAM***
  597. 4902 REM A = AMOUNT SPENT ON ANIMALS
  598. 4904 REM B = AMOUNT SPENT ON AMMUNITION
  599. 4906 REM B1 = ACTUAL RESPONSE TIME FOR INPUTING 'BANG'
  600. 4908 REM B2 = MAXIMUM RESPONSE TIME FOR INPUTING 'BANG'
  601. 4910 REM C = AMOUNT SPENT ON CLOTHING
  602. 4912 REM C1 = FLAG FOR INSUFFICIENT CLOTHING IN COLD WEATHER
  603. 4914 REM C$ = YES/NO RESPONSE TO QUESTIONS
  604. 4916 REM D1 = COUNTER IN GENERATING EVENTS
  605. 4918 REM D3 = TURN NUMBER FOR SETTING DATE
  606. 4920 REM D4 = CURRENT DATE
  607. 4922 REM E = CHOICE OF EATING
  608. 4924 REM F = AMOUNT SPENT ON FOOD
  609. 4926 REM F1 = FLAG FOR CLEARING SOUTH PASS
  610. 4928 REM F2 = FLAG FOR CLEARING BLUE MOUNTAINS
  611. 4930 REM F9 = FRACTION OF 2 WEEKS TRAVELED ON FINAL TURN
  612. 4932 REM K8 = FLAG FOR INJURY
  613. 4934 REM L1 = FLAG FOR BLIZZARD
  614. 4936 REM M = TOTAL MILEAGE WHOLE TRIP
  615. 4938 REM M1 = AMOUNT SPENT ON MISCELLANEOUS SUPPLIES
  616. 4940 REM M2 = TOTAL MILEAGE UP THROUGH PREVIOUS TURN
  617. 4942 REM M9 = FLAG FOR CLEARING SOUTH PASS IN SETTING MILEAGE
  618. 4944 REM P = AMOUNT SPENT ON ITEMS AT FORT
  619. 4946 REM R1 = RANDOM NUMBER IN CHOOSING EVENTS
  620. 4948 REM S4 = FLAG FOR ILLNESS
  621. 4950 REM S5 = 'HOSTILITY OF RIDERS' FACTOR
  622. 4952 REM T = CASH LEFT OVER AFTER INITIAL PURCHASES
  623. 4954 REM T1 = CHOICE OF TACTICS WHEN ATTACKED
  624. 4956 REM X = CHOICE OF ACTION FOR EACH TURN
  625. 4958 REM X1 = FLAG FOR FORT OPTION
  626. 5000 END