home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Complete Bookshop
/
CompleteWorkshop.iso
/
jokes
/
nerd
/
nerd.bas
next >
Wrap
BASIC Source File
|
1980-01-04
|
3KB
|
76 lines
10 ' **************************************************************************
20 ' * NERD.BAS Amaryllis Software *
30 ' * written by Carol Poster *
40 ' * This program is hereby released in the public domain. *
50 ' **************************************************************************
60 ' *
70 ' * PRINT TITLE PAGE
80 ' *
90 KEY OFF
100 CLS
110 LOCATE 7,1
120 PRINT TAB(25);"N N EEEEE RRRRR DDDDD "
130 PRINT TAB(25);"NN N E R R D D "
140 PRINT TAB(25);"N N N E R R D D "
150 PRINT TAB(25);"N N N EEEE RRRRR D D "
160 PRINT TAB(25);"N N N E R R D D "
170 PRINT TAB(25);"N NN E R R D D "
180 PRINT TAB(25);"N N EEEEE R R DDDDD "
190 LOCATE 23,1
200 PRINT "Released to public domain by Amaryllis Software 1987"
210 PRINT "Press ";: COLOR 0,7: PRINT "ENTER";: COLOR 7,0
220 PRINT " ("+CHR$(17)+CHR$(196)+CHR$(217);") to continue";
230 LINE INPUT T$
240 ' *
250 ' * TRAP CONTROL BREAK
260 ' *
270 DATA &H04,&H24,&H44,&H64
280 FOR I=15 TO 18
290 READ ICODE
300 KEY I,CHR$(ICODE)+CHR$(70)
310 KEY(I) ON
320 ON KEY (I) GOSUB 610
330 NEXT I
340 ' *
350 ' * MAIN LOOP -- displays dots
360 ' *
370 T$=""
380 CLS
390 FOR I=1 TO 22 ' loop through rows
400 FOR J=1 TO 80 ' column loop
410 LOCATE I,J
420 PRINT ".";
430 GOSUB 480
440 NEXT J
450 NEXT I
460 GOTO 380 ' infinite loop
470 END
480 ' *
490 ' * repeating message on line 24
500 ' *
510 LOCATE 23,1
520 PRINT "If you want to know how to keep a nerd amused for hours press ";
530 COLOR 0,7: PRINT "ENTER";: COLOR 7,0
540 PRINT " ("+CHR$(17)+CHR$(196)+CHR$(217);")";
550 FOR T=1 TO 200: X=1.234/1.235: NEXT T
560 LINE INPUT T$
570 LOCATE 23,1
580 PRINT STRING$(79," ");
590 IF LEN(T$)>5 THEN RETURN 340
600 RETURN
610 '*
620 '* TRAPPED CTRL-BREAK
630 '*
640 CLS
650 PRINT STRING$(79,219)
660 COLOR 15,0
670 LOCATE 2,33: PRINT "R E S U L T S"
680 COLOR 7,0
690 PRINT STRING$(79,219)
700 PRINT :PRINT
710 PRINT TAB(9);"To determine your IQ, subtract the number of dots on the screen"
720 PRINT TAB(9);"when you finally pressed CTRL-BREAK from 200. If you received a"
730 PRINT TAB(9);"negative score, type RUN [ENTER] to try again."
740 END
750 RETURN