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.
 
 
 
 
 
 

82 lines
3.5 KiB

  1. 10 PRINT TAB(32);"HANGMAN"
  2. 20 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY"
  3. 25 PRINT:PRINT:PRINT
  4. 30 DIM P$(12,12),L$(20),D$(20),N$(26),U(50)
  5. 40 C=1: N=50
  6. 50 FOR I=1 TO 20: D$(I)="-": NEXT I: M=0
  7. 60 FOR I=1 TO 26: N$(I)="": NEXT I
  8. 70 FOR I=1 TO 12: FOR J=1 TO 12: P$(I,J)=" ": NEXT J: NEXT I
  9. 80 FOR I=1 TO 12: P$(I,1)="X": NEXT I
  10. 90 FOR I=1 TO 7: P$(1,I)="X": NEXT: P$(2,7)="X"
  11. 95 IF C<N THEN 100
  12. 97 PRINT "YOU DID ALL THE WORDS!!": STOP
  13. 100 Q=INT(N*RND(1))+1
  14. 110 IF U(Q)=1 THEN 100
  15. 115 U(Q)=1: C=C+1: RESTORE: T1=0
  16. 150 FOR I=1 TO Q: READ A$: NEXT I
  17. 160 L=LEN(A$): FOR I=1 TO LEN(A$): L$(I)=MID$(A$,I,1): NEXT I
  18. 170 PRINT "HERE ARE THE LETTERS YOU USED:"
  19. 180 FOR I=1 TO 26: PRINT N$(I);: IF N$(I+1)="" THEN 200
  20. 190 PRINT ",";: NEXT I
  21. 200 PRINT: PRINT: FOR I=1 TO L: PRINT D$(I);: NEXT I: PRINT: PRINT
  22. 210 INPUT "WHAT IS YOUR GUESS";G$: R=0
  23. 220 FOR I=1 TO 26: IF N$(I)="" THEN 250
  24. 230 IF G$=N$(I) THEN PRINT "YOU GUESSED THAT LETTER BEFORE!": GOTO 170
  25. 240 NEXT I: PRINT "PROGRAM ERROR. RUN AGAIN.": STOP
  26. 250 N$(I)=G$: T1=T1+1
  27. 260 FOR I=1 TO L: IF L$(I)=G$ THEN 280
  28. 270 NEXT I: IF R=0 THEN 290
  29. 275 GOTO 300
  30. 280 D$(I)=G$: R=R+1: GOTO 270
  31. 290 M=M+1: GOTO 400
  32. 300 FOR I=1 TO L: IF D$(I)="-" THEN 320
  33. 310 NEXT I: GOTO 390
  34. 320 PRINT: FOR I=1 TO L: PRINT D$(I);: NEXT I: PRINT: PRINT
  35. 330 INPUT "WHAT IS YOUR GUESS FOR THE WORD";B$
  36. 340 IF A$=B$ THEN 360
  37. 350 PRINT "WRONG. TRY ANOTHER LETTER.": PRINT: GOTO 170
  38. 360 PRINT "RIGHT!! IT TOOK YOU";T1;"GUESSES!"
  39. 370 INPUT "WANT ANOTHER WORD";W$: IF W$="YES" THEN 50
  40. 380 PRINT: PRINT "IT'S BEEN FUN! BYE FOR NOW.": GOTO 999
  41. 390 PRINT "YOU FOUND THE WORD!": GOTO 370
  42. 400 PRINT: PRINT: PRINT"SORRY, THAT LETTER ISN'T IN THE WORD."
  43. 410 ON M GOTO 415,420,425,430,435,440,445,450,455,460
  44. 415 PRINT "FIRST, WE DRAW A HEAD": GOTO 470
  45. 420 PRINT "NOW WE DRAW A BODY.": GOTO 470
  46. 425 PRINT "NEXT WE DRAW AN ARM.": GOTO 470
  47. 430 PRINT "THIS TIME IT'S THE OTHER ARM.": GOTO 470
  48. 435 PRINT "NOW, LET'S DRAW THE RIGHT LEG.": GOTO 470
  49. 440 PRINT "THIS TIME WE DRAW THE LEFT LEG.": GOTO 470
  50. 445 PRINT "NOW WE PUT UP A HAND.": GOTO 470
  51. 450 PRINT "NEXT THE OTHER HAND.": GOTO 470
  52. 455 PRINT "NOW WE DRAW ONE FOOT": GOTO 470
  53. 460 PRINT "HERE'S THE OTHER FOOT -- YOU'RE HUNG!!"
  54. 470 ON M GOTO 480,490,500,510,520,530,540,550,560,570
  55. 480 P$(3,6)="-": P$(3,7)="-": P$(3,8)="-": P$(4,5)="(": P$(4,6)="."
  56. 481 P$(4,8)=".":P$(4,9)=")":P$(5,6)="-":P$(5,7)="-":P$(5,8)="-":GOTO 580
  57. 490 FOR I=6 TO 9: P$(I,7)="X": NEXT I: GOTO 580
  58. 500 FOR I=4 TO 7: P$(I,I-1)="\": NEXT I: GOTO 580
  59. 510 P$(4,11)="/": P$(5,10)="/": P$(6,9)="/": P$(7,8)="/": GOTO 580
  60. 520 P$(10,6)="/": P$(11,5)="/": GOTO 580
  61. 530 P$(10,8)="\": P$(11,9)="\": GOTO 580
  62. 540 P$(3,11)="\": GOTO 580
  63. 550 P$(3,3)="/": GOTO 580
  64. 560 P$(12,10)="\": P$(12,11)="-": GOTO 580
  65. 570 P$(12,3)="-": P$(12,4)="/"
  66. 580 FOR I=1 TO 12: FOR J=1 TO 12: PRINT P$(I,J);: NEXT J
  67. 590 PRINT: NEXT I: PRINT: PRINT: IF M<>10 THEN 170
  68. 600 PRINT "SORRY, YOU LOSE. THE WORD WAS ";A$
  69. 610 PRINT "YOU MISSED THAT ONE. DO YOU ";: GOTO 370
  70. 620 INPUT "TYPE YES OR NO";Y$: IF LEFT$(Y$,1)="Y" THEN 50
  71. 700 DATA "GUM","SIN","FOR","CRY","LUG","BYE","FLY"
  72. 710 DATA "UGLY","EACH","FROM","WORK","TALK","WITH","SELF"
  73. 720 DATA "PIZZA","THING","FEIGN","FIEND","ELBOW","FAULT","DIRTY"
  74. 730 DATA "BUDGET","SPIRIT","QUAINT","MAIDEN","ESCORT","PICKAX"
  75. 740 DATA "EXAMPLE","TENSION","QUININE","KIDNEY","REPLICA","SLEEPER"
  76. 750 DATA "TRIANGLE","KANGAROO","MAHOGANY","SERGEANT","SEQUENCE"
  77. 760 DATA "MOUSTACHE","DANGEROUS","SCIENTIST","DIFFERENT","QUIESCENT"
  78. 770 DATA "MAGISTRATE","ERRONEOUSLY","LOUDSPEAKER","PHYTOTOXIC"
  79. 780 DATA "MATRIMONIAL","PARASYMPATHOMIMETIC","THIGMOTROPISM"
  80. 990 PRINT "BYE NOW"
  81. 999 END