ChipMaster's bwBASIC This also includes history going back to v2.10. *WARN* some binary files might have been corrupted by CRLF.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

53 lines
1.6 KiB

  1. 10 PRINT TAB(30);"GUNNER"
  2. 20 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY"
  3. 30 PRINT:PRINT:PRINT
  4. 130 PRINT "YOU ARE THE OFFICER-IN-CHARGE, GIVING ORDERS TO A GUN"
  5. 140 PRINT "CREW, TELLING THEM THE DEGREES OF ELEVATION YOU ESTIMATE"
  6. 150 PRINT "WILL PLACE A PROJECTILE ON TARGET. A HIT WITHIN 100 YARDS"
  7. 160 PRINT "OF THE TARGET WILL DESTROY IT." : PRINT
  8. 170 R=INT(40000*RND(1)+20000)
  9. 180 PRINT "MAXIMUM RANGE OF YOUR GUN IS";R;" YARDS."
  10. 185 Z=0
  11. 190 PRINT
  12. 195 S1=0
  13. 200 T=INT(R*(.1+.8*RND(1)))
  14. 210 S=0
  15. 220 GOTO 370
  16. 230 PRINT "MINIMUM ELEVATION IS ONE DEGREE."
  17. 240 GOTO 390
  18. 250 PRINT "MAXIMUM ELEVATION IS 89 DEGREES."
  19. 260 GOTO 390
  20. 270 PRINT "OVER TARGET BY ";ABS(E);"YARDS."
  21. 280 GOTO 390
  22. 290 PRINT "SHORT OF TARGET BY ";ABS(E);"YARDS."
  23. 300 GOTO 390
  24. 320 PRINT "*** TARGET DESTROYED *** ";S;"ROUNDS OF AMMUNITION EXPENDED."
  25. 325 S1=S1+S
  26. 330 IF Z=4 THEN 490
  27. 340 Z=Z+1
  28. 345 PRINT
  29. 350 PRINT "THE FORWARD OBSERVER HAS SIGHTED MORE ENEMY ACTIVITY..."
  30. 360 GOTO 200
  31. 370 PRINT "DISTANCE TO THE TARGET IS ";T;" YARDS."
  32. 380 PRINT
  33. 390 PRINT
  34. 400 INPUT "ELEVATION";B
  35. 420 IF B>89 THEN 250
  36. 430 IF B<1 THEN 230
  37. 440 S=S+1
  38. 442 IF S<6 THEN 450
  39. 444 PRINT:PRINT "BOOM !!!! YOU HAVE JUST BEEN DESTROYED ";
  40. 446 PRINT "BY THE ENEMY." : PRINT : PRINT : PRINT : GOTO 495
  41. 450 B2=2*B/57.3 : I=R*SIN(B2) : X=T-I : E=INT(X)
  42. 460 IF ABS(E)<100 THEN 320
  43. 470 IF E>100 THEN 290
  44. 480 GOTO 270
  45. 490 PRINT : PRINT : PRINT "TOTAL ROUNDS EXPENDED WERE:";S1
  46. 492 IF S1>18 THEN 495
  47. 493 PRINT "NICE SHOOTING !!" : GOTO 500
  48. 495 PRINT "BETTER GO BACK TO FORT SILL FOR REFRESHER TRAINING!"
  49. 500 PRINT : INPUT "TRY AGAIN (Y OR N)";Z$
  50. 510 IF Z$="Y" THEN 170
  51. 520 PRINT:PRINT "OK. RETURN TO BASE CAMP."
  52. 999 END