home *** CD-ROM | disk | FTP | other *** search
- DECLARE SUB dark ()
- DECLARE SUB light ()
- START:
-
- DECLARE SUB counter ()
- DECLARE SUB result ()
- DECLARE SUB cardtwo ()
- DECLARE SUB cardthree ()
- DECLARE SUB cardfour ()
- DECLARE SUB cardfive ()
- DECLARE SUB cardsix ()
- DECLARE SUB cardseven ()
- DECLARE SUB titlepage ()
- DECLARE SUB SECRET ()
- DECLARE SUB intro ()
- DECLARE SUB cardone ()
- DECLARE SUB answer ()
- COMMON SHARED end$
- COMMON SHARED totall
- LET totall = 0
-
-
-
- CALL titlepage
- CALL intro
-
- CALL cardone
- CALL cardtwo
- CALL cardthree
- CALL cardfour
- CALL cardfive
- CALL cardsix
- CALL cardseven
-
- CALL result
-
- REM Checks if the user typed q or Q for quit in the
- REM result subroutine
- IF end$ = "Q" OR end$ = "q" THEN END
-
- GOTO START
-
-
- END
-
-
- SUB cardfive
-
- 5 REM restart sub
-
- CLS
- SCREEN 1 'Graphic mode 320 X 200 pixel resolutio
- PRINT
- PRINT
- PRINT
- PRINT
- PRINT
- PRINT " 16 17 18 19 20 21 22 23 24 25"
- PRINT
- PRINT " 26 27 28 29 30 31 48 49 50 51"
- PRINT
- PRINT " 52 53 54 55 56 57 59 60 61 63"
- PRINT
- PRINT
- PRINT
- PRINT
- PRINT
- PRINT
- PRINT
- LINE (5, 35)-(312, 100), , B
- BEEP
- INPUT " Is your number here? <y/n>"; key$
-
- IF key$ = "yes" OR key$ = "Y" OR key$ = "y" OR key$ = "YES" THEN
- totall = totall + 16
- GOTO 52
- END IF
-
- IF key$ = "N" OR key$ = "n" THEN
- GOTO 52
- END IF
-
- GOTO 5
-
- 52 REM Label
-
- END SUB
-
- SUB cardfour
-
- 4 REM restart sub
-
- CLS
- SCREEN 1 'Graphic mode 320 X 200 pixel resolutio
- PRINT
- PRINT
- PRINT
- PRINT
- PRINT
- PRINT " 8 9 10 11 12 13 14 15 24 25"
- PRINT
- PRINT " 26 27 28 29 30 31 40 41 42 43"
- PRINT
- PRINT " 44 45 46 47 56 57 58 59 60 61"
- PRINT
- PRINT " 62 63 72 73 74 75"
- PRINT
- PRINT
- PRINT
- PRINT
- PRINT
- LINE (5, 35)-(312, 100), , B
- BEEP
- INPUT " Is your number here? <y/n>"; key$
-
- IF key$ = "yes" OR key$ = "Y" OR key$ = "y" OR key$ = "YES" THEN
- totall = totall + 8
- GOTO 42
- END IF
-
- IF key$ = "N" OR key$ = "n" THEN
- GOTO 42
- END IF
-
- GOTO 4
-
- 42 REM Label
-
- END SUB
-
- SUB cardone
-
- 1 REM restart sub
-
- CLS
- SCREEN 1 'Graphic mode 320 X 200 pixel resolutio
- PRINT
- PRINT
- PRINT
- PRINT
- PRINT
- PRINT " 1 3 5 7 9 11 13 15 17 19"
- PRINT
- PRINT " 21 23 25 27 29 31 33 35 37 39"
- PRINT
- PRINT " 41 43 45 47 49 51 53 55 57 59"
- PRINT
- PRINT " 61 63 65 67 69 71 73 75"
- PRINT
- PRINT
- PRINT
- PRINT
- PRINT
- LINE (5, 35)-(312, 100), , B
- BEEP
- INPUT " Is your number here? <y/n>"; key$
-
- IF key$ = "yes" OR key$ = "Y" OR key$ = "y" OR key$ = "YES" THEN
- LET totall = totall + 1
- GOTO 12
- END IF
-
- IF key$ = "N" OR key$ = "n" THEN
- GOTO 12
- END IF
-
- GOTO 1
-
- 12 REM Label
-
- END SUB
-
- SUB cardseven
-
- 7 REM restart sub
-
- CLS
- SCREEN 1 'Graphic mode 320 X 200 pixel resolutio
- PRINT
- PRINT
- PRINT
- PRINT
- PRINT
- PRINT " 64 65 66 67 68 69 70 71 72 73"
- PRINT
- PRINT " 74 75"
- PRINT
- PRINT
- PRINT
- PRINT
- PRINT
- PRINT
- PRINT
- PRINT
- PRINT
- LINE (5, 35)-(312, 100), , B
- BEEP
- INPUT " Is your number here? <y/n>"; key$
-
- IF key$ = "yes" OR key$ = "Y" OR key$ = "y" OR key$ = "YES" THEN
- totall = totall + 64
- GOTO 72
- END IF
-
- IF key$ = "N" OR key$ = "n" THEN
- GOTO 72
- END IF
-
- GOTO 7
-
- 72 REM Label
-
- END SUB
-
- SUB cardsix
-
- 6 REM restart sub
-
- CLS
- SCREEN 1 'Graphic mode 320 X 200 pixel resolutio
- PRINT
- PRINT
- PRINT
- PRINT
- PRINT
- PRINT " 32 33 34 35 36 37 38 39 40 41"
- PRINT
- PRINT " 42 43 44 45 46 47 48 49 50 51"
- PRINT
- PRINT " 52 53 54 55 56 57 58 59 60 61"
- PRINT
- PRINT " 62 63"
- PRINT
- PRINT
- PRINT
- PRINT
- PRINT
- LINE (5, 35)-(312, 100), , B
- BEEP
- INPUT " Is your number here? <y/n>"; key$
-
- IF key$ = "yes" OR key$ = "Y" OR key$ = "y" OR key$ = "YES" THEN
- totall = totall + 32
- GOTO 62
- END IF
-
- IF key$ = "N" OR key$ = "n" THEN
- GOTO 62
- END IF
-
- GOTO 6
-
- 62 REM Label
-
- END SUB
-
- SUB cardthree
-
- 3 REM restart sub
-
- CLS
- SCREEN 1 'Graphic mode 320 X 200 pixel resolutio
- PRINT
- PRINT
- PRINT
- PRINT
- PRINT
- PRINT " 4 5 6 7 12 13 14 15 20 21"
- PRINT
- PRINT " 22 23 28 29 30 31 36 37 38 39"
- PRINT
- PRINT " 44 45 46 47 52 53 54 55 60 61"
- PRINT
- PRINT " 62 63 68 69 70 71"
- PRINT
- PRINT
- PRINT
- PRINT
- PRINT
- LINE (5, 35)-(312, 100), , B
- BEEP
- INPUT " Is your number here? <y/n>"; key$
-
- IF key$ = "yes" OR key$ = "Y" OR key$ = "y" OR key$ = "YES" THEN
- totall = totall + 4
- GOTO 32
- END IF
-
- IF key$ = "N" OR key$ = "n" THEN
- GOTO 32
- END IF
-
- GOTO 3
-
- 32 REM Label
-
- END SUB
-
- SUB cardtwo
-
- 2 REM start sub again
-
- CLS
- SCREEN 1 'Graphic mode 320 X 200 pixel resolutio
- PRINT
- PRINT
- PRINT
- PRINT
- PRINT
- PRINT " 2 3 6 7 10 11 14 15 18 19"
- PRINT
- PRINT " 22 23 26 27 30 31 34 35 38 39"
- PRINT
- PRINT " 42 43 46 47 50 51 54 55 58 59"
- PRINT
- PRINT " 62 63 66 67 70 71 74 75"
- PRINT
- PRINT
- PRINT
- PRINT
- PRINT
- LINE (5, 35)-(312, 100), , B
- BEEP
- INPUT " Is your number here? <y/n>"; key$
-
-
- IF key$ = "yes" OR key$ = "Y" OR key$ = "y" OR key$ = "YES" THEN
- totall = totall + 2
- GOTO 22
- END IF
-
- IF key$ = "N" OR key$ = "n" THEN
- GOTO 22
- END IF
-
- GOTO 2
-
- 22 REM Label
-
- END SUB
-
- SUB dark
-
- FOR x = 1 TO 200
- NEXT x
- LINE (95, 60)-(220, 90), , B
-
-
- END SUB
-
- SUB intro
- CLS
- SCREEN 1 'Graphic mode 320 X 200 pixel resolution
- PRINT
- PRINT
- PRINT " *** *** ********** *** ***"
- PRINT " *** *** ********** *** *** "
- PRINT " *** *** *** *** *** *** "
- PRINT " *** *** *** *** *** ***"
- PRINT " ********* *** *** *** ***"
- PRINT " ********* *** *** *** ** ***"
- PRINT " *** *** *** *** *** ** ***"
- PRINT " *** *** *** *** *** ** ***"
- PRINT " *** *** ********** **********"
- PRINT " *** *** ********** **********"
- PRINT
- PRINT
- PRINT " Please choose a number between"
- PRINT
- PRINT " 1 and 75"
- PRINT
- PRINT " The computer will try to read"
- PRINT " Your mind in order to find the"
- PRINT " number that you chose."
- PRINT
- PRINT
- REM Draws a box around the choose a number box
- LINE (35, 105)-(285, 140), , B
- BEEP
- INPUT " Press <Return>"; dummy$
- IF dummy$ = "SECRET" THEN CALL SECRET
-
- END SUB
-
-
-
- SUB light
-
- FOR x = 1 TO 200
- NEXT x
-
- LINE (95, 60)-(220, 90), 1, B
-
- END SUB
-
- SUB result
-
- CLS
- SCREEN 1 'Graphic mode 320 X 200 pixel resolution
-
- REM Draws a box around the choose a number box
- LINE (100, 65)-(215, 85), , B
-
- LOCATE 5, 1
- PRINT " The computer is now calculating!"
-
- LOCATE 10, 15
- PRINT "Please wait!"
- CALL dark
-
- LOCATE 10, 15
- PRINT " lease wait!"
- CALL light
-
- LOCATE 10, 15
- PRINT " ease wait!"
- CALL dark
-
- LOCATE 10, 15
- PRINT " ase wait!"
- CALL light
-
- LOCATE 10, 15
- PRINT " se wait!"
- CALL dark
-
- LOCATE 10, 15
- PRINT " e wait!"
- CALL light
-
- LOCATE 10, 15
- PRINT " wait!"
- CALL dark
-
- LOCATE 10, 15
- PRINT " ait!"
- CALL light
-
- LOCATE 10, 15
- PRINT " it!"
- CALL dark
-
- LOCATE 10, 15
- PRINT " t!"
- CALL light
-
- LOCATE 10, 15
- PRINT " !"
- CALL dark
-
- LOCATE 10, 15
- PRINT " "
- CALL light
-
- LOCATE 10, 15
- PRINT "P !"
- CALL dark
-
- LOCATE 10, 15
- PRINT "Pl t!"
- CALL light
-
- LOCATE 10, 15
- PRINT "Ple it!"
- CALL dark
-
- LOCATE 10, 15
- PRINT "Plea ait!"
- CALL light
-
- LOCATE 10, 15
- PRINT "Pleas wait!"
- CALL dark
-
- LOCATE 10, 15
- PRINT "Please wait!"
- CALL light
-
- CALL dark
-
- LOCATE 10, 15
- PRINT " "
-
- LINE (95, 60)-(220, 90), 0, B 'Removes the box
- LINE (100, 65)-(215, 85), 0, B
-
-
- LINE (60, 60)-(230, 90), , B 'New box
-
- LOCATE 10, 10
- PRINT "Your number is:"; totall;
-
- LOCATE 16, 2
- PRINT " The computer has read your mind!"
- BEEP
-
- LOCATE 20, 2
- PRINT " Press <Return> to restart"
- PRINT
-
-
- INPUT " Enter <Q> to quit"; end$
-
- IF end$ = "SECRET" THEN CALL SECRET
-
- END SUB
-
- SUB SECRET
-
- SCREEN 1 'Graphic mode 320 X 200 pixel resolution
-
- CLS
-
- PRINT
- PRINT
- PRINT
- PRINT
- PRINT " HOW was programmed by Eric Tremblay"
- PRINT
- PRINT " Original Idea by Chantal Bellerose"
- PRINT
- PRINT " December 25, 1988"
- PRINT
- PRINT
- PRINT
- PRINT " IBM Version 1.0 March 2, 1991"
- PRINT
- PRINT
- PRINT
- PRINT " CompuServe I.D. 73117,460"
- PRINT " GEnie E.TREMBLAY2"
- PRINT
- PRINT
- PRINT
- PRINT
-
- BEEP
-
- LINE (35, 90)-(285, 107), , B
- INPUT " Press <Return>"; dummy$
-
- END SUB
-
- SUB titlepage
- CLS
- SCREEN 2 ' Regular 80X25 text screen mode
- PRINT
- PRINT
- PRINT
- PRINT " ****** ****** ******************* ****** ******"
- PRINT " ****** ****** ******************* ****** ****** "
- PRINT " ****** ****** ****** ****** ****** ****** "
- PRINT " ****** ****** ****** ****** ****** ******"
- PRINT " ******************* ****** ****** ****** ******"
- PRINT " ******************* ****** ****** ****** *** ******"
- PRINT " ****** ****** ****** ****** ****** *** ******"
- PRINT " ****** ****** ****** ****** ****** ** ** ******"
- PRINT " ****** ****** ******************* ********* *********"
- PRINT " ****** ****** ******************* ****** ******"
- PRINT
- PRINT
- PRINT " A M a t h e m a t i c a l T r i c k"
- PRINT
- PRINT " By Eric Tremblay"
- PRINT
- PRINT " CompuServe I.D. 73117,460"
- PRINT " GEnie E.TREMBLAY2"
- PRINT
- PRINT
- BEEP
- INPUT " Press <Return>"; dummy$
- IF dummy$ = "SECRET" THEN CALL SECRET
-
- END SUB
-
-