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.
 
 
 
 
 
 

80 lines
1.8 KiB

  1. 2 PRINT TAB(32);"FLIPFLOP"
  2. 4 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY"
  3. 6 PRINT
  4. 10 REM *** CREATED BY MICHAEL CASS
  5. 15 DIM A$(20)
  6. 20 PRINT "THE OBJECT OF THIS PUZZLE IS TO CHANGE THIS:"
  7. 30 PRINT
  8. 40 PRINT "X X X X X X X X X X"
  9. 50 PRINT
  10. 60 PRINT "TO THIS:"
  11. 70 PRINT
  12. 80 PRINT "O O O O O O O O O O"
  13. 90 PRINT
  14. 100 PRINT "BY TYPING THE NUMBER CORRESPONDING TO THE POSITION OF THE"
  15. 110 PRINT "LETTER ON SOME NUMBERS, ONE POSITION WILL CHANGE, ON"
  16. 120 PRINT "OTHERS, TWO WILL CHANGE. TO RESET LINE TO ALL X'S, TYPE 0"
  17. 130 PRINT "(ZERO) AND TO START OVER IN THE MIDDLE OF A GAME, TYPE "
  18. 140 PRINT "11 (ELEVEN)."
  19. 170 PRINT
  20. 180 REM
  21. 190 Q=RND(1)
  22. 200 PRINT "HERE IS THE STARTING LINE OF X'S."
  23. 210 PRINT
  24. 220 C=0
  25. 230 PRINT "1 2 3 4 5 6 7 8 9 10"
  26. 240 PRINT "X X X X X X X X X X"
  27. 250 PRINT
  28. 260 REM
  29. 270 FOR X=1 TO 10
  30. 280 A$(X)="X"
  31. 290 NEXT X
  32. 300 GOTO 320
  33. 310 PRINT "ILLEGAL ENTRY--TRY AGAIN."
  34. 320 PRINT "INPUT THE NUMBER";
  35. 330 INPUT N
  36. 340 IF N<>INT(N) THEN 310
  37. 350 IF N=11 THEN 180
  38. 360 IF N>11 THEN 310
  39. 370 IF N=0 THEN 230
  40. 380 IF M=N THEN 510
  41. 390 M=N
  42. 400 IF A$(N)="O" THEN 480
  43. 410 A$(N)="O"
  44. 420 R=TAN(Q+N/Q-N)-SIN(Q/N)+336*SIN(8*N)
  45. 430 N=R-INT(R)
  46. 440 N=INT(10*N)
  47. 450 IF A$(N)="O" THEN 480
  48. 460 A$(N)="O"
  49. 470 GOTO 610
  50. 480 A$(N)="X"
  51. 490 IF M=N THEN 420
  52. 500 GOTO 610
  53. 510 IF A$(N)="O" THEN 590
  54. 520 A$(N)="O"
  55. 530 R=.592*(1/TAN(Q/N+Q))/SIN(N*2+Q)-COS(N)
  56. 540 N=R-INT(R)
  57. 550 N=INT(10*N)
  58. 560 IF A$(N)="O" THEN 590
  59. 570 A$(N)="O"
  60. 580 GOTO 610
  61. 590 A$(N)="X"
  62. 600 IF M=N THEN 530
  63. 610 PRINT "1 2 3 4 5 6 7 8 9 10"
  64. 620 FOR Z=1 TO 10: PRINT A$(Z);" ";: NEXT Z
  65. 630 C=C+1
  66. 640 PRINT
  67. 650 FOR Z=1 TO 10
  68. 660 IF A$(Z)<>"O" THEN 320
  69. 670 NEXT Z
  70. 680 IF C>12 THEN 710
  71. 690 PRINT "VERY GOOD. YOU GUESSED IT IN ONLY";C;"GUESSES."
  72. 700 GOTO 720
  73. 710 PRINT "TRY HARDER NEXT TIME. IT TOOK YOU";C;"GUESSES."
  74. 720 PRINT "DO YOU WANT TO TRY ANOTHER PUZZLE";
  75. 730 INPUT X$
  76. 740 IF LEFT$(X$,1)="N" THEN 780
  77. 760 PRINT
  78. 770 GOTO 180
  79. 780 END