Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_21.ADF » G/SIMON
G/SIMON
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_21.ADF |
Filename: | G/SIMON |
Read OK: | ✔ |
File size: | 085E bytes |
Load address: | FFFF1D00 |
Exec address: | FFFF8023 |
File contents
10REM *** SIMON *** 20REM (c) Ross Little July 1995 30REM for EUG Issue 21 40 50MODE 1:ON ERROR RUN 60PROCinit 70REPEAT 80 PROCinstruct:*FX15,1 90 REPEAT UNTIL GET=32 100 REPEAT 110 seq$="":*FX15,1 120 IF comp=max comp=1:max=max+1 130 IF max=9 max=4 140 correct=FNnumber 150 comp=comp+1:score=score+1 160 UNTIL correct=FALSE 170 score=score-1 180 IF score>hi hi=score 190 UNTIL FALSE 200 210DEF PROCinit 220VDU 23,1,0;0;0;0; 230VDU 12,19,1,0;0; 240VDU 19,2,0;0;19,3,0;0; 250COLOUR131 260VDU 28,0,5,39,0:CLS 270VDU 28,0,31,39,26:CLS 280COLOUR130 290VDU 28,0,25,39,6:CLS 300score=0:hi=3 310ENDPROC 320 330DEF PROCinstruct 340CLS:COLOUR1 350PRINT TAB(14,0) "*** SIMON ***" 360COLOUR0:PRINT TAB(1,3) "This is a simple memory game, where" 370PRINT TAB(1,4) "the player has to remember a series" 380PRINT TAB(1,5) "of numbers which are flashed onto the" 390PRINT TAB(1,6) "screen." 400PRINT TAB(1,8) "On each turn, the number of digits in" 410PRINT TAB(1,9) "the number increases by one." 420PRINT TAB(1,11) "The game is over as soon as you make" 430PRINT TAB(1,12) "a mistake." 440PRINT TAB(3,15) "Last score: ";score 450PRINT TAB(3,16) "High score: ";hi 460COLOUR1:PRINT TAB(10,19) "Press SPACE to start"; 470comp=1:score=0:max=4 480VDU 20 490COLOUR130:COLOUR1 500ENDPROC 510 520DEF PROCheader 530CLS 540COLOUR 1 550PRINT TAB(14,0) "*** SIMON ***" 560COLOUR 0 570PRINT TAB(0,3) "Number in sequence: ";comp 580PRINT TAB(0,4) "Current score: ";score 590PRINT TAB(0,5) "Hi score: ";hi 600ENDPROC 610 620DEF FNnumber 630LOCAL correct 640PROCheader 650col=1 660FOR show=1 TO comp 670rand=RND(10) 680seq$=seq$+CHR$(rand+47) 690PRINT TAB(16,8);CHR$(rand+47) 700SOUND &11,-15,(rand-1)*20+60,5 710TIME=0:REPEAT UNTIL TIME>50 720col=col+1 730IF col=2 col=3 740IF col=4 col=0 750NEXT show 760COLOUR 0 770PRINT TAB(16,8)" ";:*FX15,1 780PRINT TAB(0,8);"Please enter the numbers..." 790PRINT TAB(4,10); 800FOR enter=1 TO comp 810REPEAT 820guess=GET:UNTIL guess>47 AND guess<58 830PRINT;guess-48;" "; 840SOUND &11,-15,(guess-48)*20+60,5 850IF guess=ASC(MID$(seq$,enter,1)) correct=correct+1 860NEXT enter 870PRINT TAB(4,12); 880TIME=0:REPEAT UNTIL TIME>25 890FOR show=1 TO comp 900char$=MID$(seq$,show,1) 910PRINT char$;" "; 920SOUND &11,-15,(VAL char$)*20+60,5 930TIME=0:REPEAT UNTIL TIME>25 940NEXT show 950IF correct=comp correct=TRUE ELSE correct=FALSE 960COLOUR 1 970IF correct PRINT TAB(15,16) "Well done!"TAB(10,18)"That was the correct"TAB(16,19)"answer!!"; 980IF NOT correct PRINT TAB(16,16) "Bad luck"TAB(10,18)"You chose the wrong"TAB(16,19)"answer!!"; 990dummy=INKEY(200) 1000=correct
� *** SIMON *** � (c) Ross Little July 1995 � for EUG Issue 21 ( 2 � 1:� � � < �init F� P �instruct:*FX15,1 Z � � �=32 d � n seq$="":*FX15,1 x# � comp=max comp=1:max=max+1 � � max=9 max=4 � correct=�number �! comp=comp+1:score=score+1 � � correct=� � score=score-1 � � score>hi hi=score � � � � �� �init �� 23,1,0;0;0;0; �� 12,19,1,0;0; �� 19,2,0;0;19,3,0;0; ��131 � 28,0,5,39,0:� � 28,0,31,39,26:� �130 "� 28,0,25,39,6:� ,score=0:hi=3 6� @ J� �instruct T�:�1 ^� �14,0) "*** SIMON ***" h7�0:� �1,3) "This is a simple memory game, where" r4� �1,4) "the player has to remember a series" |4� �1,5) "of numbers which are flashed onto the" �� �1,6) "screen." �4� �1,8) "On each turn, the number of digits in" �*� �1,9) "the number increases by one." �5� �1,11) "The game is over as soon as you make" �� �1,12) "a mistake." �!� �3,15) "Last score: ";score �� �3,16) "High score: ";hi �(�1:� �10,19) "Press SPACE to start"; �comp=1:score=0:max=4 �� 20 ��130:�1 �� � � �header � � 1 &� �14,0) "*** SIMON ***" 0� 0 :'� �0,3) "Number in sequence: ";comp D#� �0,4) "Current score: ";score N� �0,5) "Hi score: ";hi X� b l � �number v � correct ��header � col=1 �� show=1 � comp �rand=�(10) �seq$=seq$+�(rand+47) �� �16,8);�(rand+47) �� &11,-15,(rand-1)*20+60,5 ��=0:� � �>50 � col=col+1 �� col=2 col=3 �� col=4 col=0 � � show �� 0 � �16,8)" ";:*FX15,1 )� �0,8);"Please enter the numbers..." � �4,10); � enter=1 � comp *� 4!guess=�:� guess>47 � guess<58 >�;guess-48;" "; H � &11,-15,(guess-48)*20+60,5 R/� guess=�(�seq$,enter,1)) correct=correct+1 \� enter f � �4,12); p�=0:� � �>25 z� show=1 � comp �char$=�seq$,show,1) �� char$;" "; �� &11,-15,(� char$)*20+60,5 ��=0:� � �>25 � � show �(� correct=comp correct=� � correct=� �� 1 �S� correct � �15,16) "Well done!"�10,18)"That was the correct"�16,19)"answer!!"; �R� � correct � �16,16) "Bad luck"�10,18)"You chose the wrong"�16,19)"answer!!"; �dummy=�(200) �=correct �
00000000 0d 00 0a 19 f4 20 20 20 20 20 20 20 2a 2a 2a 20 |..... *** | 00000010 53 49 4d 4f 4e 20 2a 2a 2a 0d 00 14 1f f4 20 28 |SIMON ***..... (| 00000020 63 29 20 52 6f 73 73 20 4c 69 74 74 6c 65 20 4a |c) Ross Little J| 00000030 75 6c 79 20 31 39 39 35 0d 00 1e 1b f4 20 20 20 |uly 1995..... | 00000040 20 20 66 6f 72 20 45 55 47 20 20 49 73 73 75 65 | for EUG Issue| 00000050 20 32 31 0d 00 28 05 20 0d 00 32 0d eb 20 31 3a | 21..(. ..2.. 1:| 00000060 ee 20 85 20 f9 0d 00 3c 09 f2 69 6e 69 74 0d 00 |. . ...<..init..| 00000070 46 05 f5 0d 00 50 17 20 20 f2 69 6e 73 74 72 75 |F....P. .instru| 00000080 63 74 3a 2a 46 58 31 35 2c 31 0d 00 5a 0e 20 20 |ct:*FX15,1..Z. | 00000090 f5 20 fd 20 a5 3d 33 32 0d 00 64 07 20 20 f5 0d |. . .=32..d. ..| 000000a0 00 6e 17 20 20 20 20 73 65 71 24 3d 22 22 3a 2a |.n. seq$="":*| 000000b0 46 58 31 35 2c 31 0d 00 78 23 20 20 20 20 e7 20 |FX15,1..x# . | 000000c0 63 6f 6d 70 3d 6d 61 78 20 63 6f 6d 70 3d 31 3a |comp=max comp=1:| 000000d0 6d 61 78 3d 6d 61 78 2b 31 0d 00 82 15 20 20 20 |max=max+1.... | 000000e0 20 e7 20 6d 61 78 3d 39 20 6d 61 78 3d 34 0d 00 | . max=9 max=4..| 000000f0 8c 17 20 20 20 20 63 6f 72 72 65 63 74 3d a4 6e |.. correct=.n| 00000100 75 6d 62 65 72 0d 00 96 21 20 20 20 20 63 6f 6d |umber...! com| 00000110 70 3d 63 6f 6d 70 2b 31 3a 73 63 6f 72 65 3d 73 |p=comp+1:score=s| 00000120 63 6f 72 65 2b 31 0d 00 a0 13 20 20 20 20 fd 20 |core+1.... . | 00000130 63 6f 72 72 65 63 74 3d a3 0d 00 aa 13 20 20 73 |correct=..... s| 00000140 63 6f 72 65 3d 73 63 6f 72 65 2d 31 0d 00 b4 19 |core=score-1....| 00000150 20 20 e7 20 73 63 6f 72 65 3e 68 69 20 68 69 3d | . score>hi hi=| 00000160 73 63 6f 72 65 0d 00 be 09 20 20 fd 20 a3 0d 00 |score.... . ...| 00000170 c8 05 20 0d 00 d2 0b dd 20 f2 69 6e 69 74 0d 00 |.. ..... .init..| 00000180 dc 13 ef 20 32 33 2c 31 2c 30 3b 30 3b 30 3b 30 |... 23,1,0;0;0;0| 00000190 3b 0d 00 e6 12 ef 20 31 32 2c 31 39 2c 31 2c 30 |;..... 12,19,1,0| 000001a0 3b 30 3b 0d 00 f0 18 ef 20 31 39 2c 32 2c 30 3b |;0;..... 19,2,0;| 000001b0 30 3b 31 39 2c 33 2c 30 3b 30 3b 0d 00 fa 08 fb |0;19,3,0;0;.....| 000001c0 31 33 31 0d 01 04 13 ef 20 32 38 2c 30 2c 35 2c |131..... 28,0,5,| 000001d0 33 39 2c 30 3a db 0d 01 0e 15 ef 20 32 38 2c 30 |39,0:...... 28,0| 000001e0 2c 33 31 2c 33 39 2c 32 36 3a db 0d 01 18 08 fb |,31,39,26:......| 000001f0 31 33 30 0d 01 22 14 ef 20 32 38 2c 30 2c 32 35 |130..".. 28,0,25| 00000200 2c 33 39 2c 36 3a db 0d 01 2c 10 73 63 6f 72 65 |,39,6:...,.score| 00000210 3d 30 3a 68 69 3d 33 0d 01 36 05 e1 0d 01 40 05 |=0:hi=3..6....@.| 00000220 20 0d 01 4a 0f dd 20 f2 69 6e 73 74 72 75 63 74 | ..J.. .instruct| 00000230 0d 01 54 08 db 3a fb 31 0d 01 5e 1c f1 20 8a 31 |..T..:.1..^.. .1| 00000240 34 2c 30 29 20 22 2a 2a 2a 20 53 49 4d 4f 4e 20 |4,0) "*** SIMON | 00000250 2a 2a 2a 22 0d 01 68 37 fb 30 3a f1 20 8a 31 2c |***"..h7.0:. .1,| 00000260 33 29 20 22 54 68 69 73 20 20 69 73 20 61 20 73 |3) "This is a s| 00000270 69 6d 70 6c 65 20 20 6d 65 6d 6f 72 79 20 20 67 |imple memory g| 00000280 61 6d 65 2c 20 77 68 65 72 65 22 0d 01 72 34 f1 |ame, where"..r4.| 00000290 20 8a 31 2c 34 29 20 22 74 68 65 20 70 6c 61 79 | .1,4) "the play| 000002a0 65 72 20 20 68 61 73 20 74 6f 20 72 65 6d 65 6d |er has to remem| 000002b0 62 65 72 20 20 61 20 20 73 65 72 69 65 73 22 0d |ber a series".| 000002c0 01 7c 34 f1 20 8a 31 2c 35 29 20 22 6f 66 20 6e |.|4. .1,5) "of n| 000002d0 75 6d 62 65 72 73 20 77 68 69 63 68 20 61 72 65 |umbers which are| 000002e0 20 20 66 6c 61 73 68 65 64 20 6f 6e 74 6f 20 74 | flashed onto t| 000002f0 68 65 22 0d 01 86 15 f1 20 8a 31 2c 36 29 20 22 |he"..... .1,6) "| 00000300 73 63 72 65 65 6e 2e 22 0d 01 90 34 f1 20 8a 31 |screen."...4. .1| 00000310 2c 38 29 20 22 4f 6e 20 65 61 63 68 20 74 75 72 |,8) "On each tur| 00000320 6e 2c 20 20 74 68 65 20 6e 75 6d 62 65 72 20 6f |n, the number o| 00000330 66 20 64 69 67 69 74 73 20 69 6e 22 0d 01 9a 2a |f digits in"...*| 00000340 f1 20 8a 31 2c 39 29 20 22 74 68 65 20 6e 75 6d |. .1,9) "the num| 00000350 62 65 72 20 69 6e 63 72 65 61 73 65 73 20 62 79 |ber increases by| 00000360 20 6f 6e 65 2e 22 0d 01 a4 35 f1 20 8a 31 2c 31 | one."...5. .1,1| 00000370 31 29 20 22 54 68 65 20 67 61 6d 65 20 69 73 20 |1) "The game is | 00000380 20 6f 76 65 72 20 61 73 20 73 6f 6f 6e 20 61 73 | over as soon as| 00000390 20 20 79 6f 75 20 6d 61 6b 65 22 0d 01 ae 19 f1 | you make".....| 000003a0 20 8a 31 2c 31 32 29 20 22 61 20 6d 69 73 74 61 | .1,12) "a mista| 000003b0 6b 65 2e 22 0d 01 b8 21 f1 20 8a 33 2c 31 35 29 |ke."...!. .3,15)| 000003c0 20 22 4c 61 73 74 20 73 63 6f 72 65 3a 20 22 3b | "Last score: ";| 000003d0 73 63 6f 72 65 0d 01 c2 1e f1 20 8a 33 2c 31 36 |score..... .3,16| 000003e0 29 20 22 48 69 67 68 20 73 63 6f 72 65 3a 20 22 |) "High score: "| 000003f0 3b 68 69 0d 01 cc 28 fb 31 3a f1 20 8a 31 30 2c |;hi...(.1:. .10,| 00000400 31 39 29 20 22 50 72 65 73 73 20 53 50 41 43 45 |19) "Press SPACE| 00000410 20 74 6f 20 73 74 61 72 74 22 3b 0d 01 d6 18 63 | to start";....c| 00000420 6f 6d 70 3d 31 3a 73 63 6f 72 65 3d 30 3a 6d 61 |omp=1:score=0:ma| 00000430 78 3d 34 0d 01 e0 08 ef 20 32 30 0d 01 ea 0b fb |x=4..... 20.....| 00000440 31 33 30 3a fb 31 0d 01 f4 05 e1 0d 01 fe 05 20 |130:.1......... | 00000450 0d 02 08 0d dd 20 f2 68 65 61 64 65 72 0d 02 12 |..... .header...| 00000460 05 db 0d 02 1c 07 fb 20 31 0d 02 26 1c f1 20 8a |....... 1..&.. .| 00000470 31 34 2c 30 29 20 22 2a 2a 2a 20 53 49 4d 4f 4e |14,0) "*** SIMON| 00000480 20 2a 2a 2a 22 0d 02 30 07 fb 20 30 0d 02 3a 27 | ***"..0.. 0..:'| 00000490 f1 20 8a 30 2c 33 29 20 22 4e 75 6d 62 65 72 20 |. .0,3) "Number | 000004a0 69 6e 20 73 65 71 75 65 6e 63 65 3a 20 22 3b 63 |in sequence: ";c| 000004b0 6f 6d 70 0d 02 44 23 f1 20 8a 30 2c 34 29 20 22 |omp..D#. .0,4) "| 000004c0 43 75 72 72 65 6e 74 20 73 63 6f 72 65 3a 20 22 |Current score: "| 000004d0 3b 73 63 6f 72 65 0d 02 4e 1b f1 20 8a 30 2c 35 |;score..N.. .0,5| 000004e0 29 20 22 48 69 20 73 63 6f 72 65 3a 20 22 3b 68 |) "Hi score: ";h| 000004f0 69 0d 02 58 05 e1 0d 02 62 05 20 0d 02 6c 0d dd |i..X....b. ..l..| 00000500 20 a4 6e 75 6d 62 65 72 0d 02 76 0d ea 20 63 6f | .number..v.. co| 00000510 72 72 65 63 74 0d 02 80 0b f2 68 65 61 64 65 72 |rrect.....header| 00000520 0d 02 8a 09 63 6f 6c 3d 31 0d 02 94 13 e3 20 73 |....col=1..... s| 00000530 68 6f 77 3d 31 20 b8 20 63 6f 6d 70 0d 02 9e 0e |how=1 . comp....| 00000540 72 61 6e 64 3d b3 28 31 30 29 0d 02 a8 18 73 65 |rand=.(10)....se| 00000550 71 24 3d 73 65 71 24 2b bd 28 72 61 6e 64 2b 34 |q$=seq$+.(rand+4| 00000560 37 29 0d 02 b2 17 f1 20 8a 31 36 2c 38 29 3b bd |7)..... .16,8);.| 00000570 28 72 61 6e 64 2b 34 37 29 0d 02 bc 1e d4 20 26 |(rand+47)..... &| 00000580 31 31 2c 2d 31 35 2c 28 72 61 6e 64 2d 31 29 2a |11,-15,(rand-1)*| 00000590 32 30 2b 36 30 2c 35 0d 02 c6 10 d1 3d 30 3a f5 |20+60,5.....=0:.| 000005a0 20 fd 20 91 3e 35 30 0d 02 d0 0d 63 6f 6c 3d 63 | . .>50....col=c| 000005b0 6f 6c 2b 31 0d 02 da 11 e7 20 63 6f 6c 3d 32 20 |ol+1..... col=2 | 000005c0 63 6f 6c 3d 33 0d 02 e4 11 e7 20 63 6f 6c 3d 34 |col=3..... col=4| 000005d0 20 63 6f 6c 3d 30 0d 02 ee 0a ed 20 73 68 6f 77 | col=0..... show| 000005e0 0d 02 f8 07 fb 20 30 0d 03 02 18 f1 20 8a 31 36 |..... 0..... .16| 000005f0 2c 38 29 22 20 22 3b 3a 2a 46 58 31 35 2c 31 0d |,8)" ";:*FX15,1.| 00000600 03 0c 29 f1 20 8a 30 2c 38 29 3b 22 50 6c 65 61 |..). .0,8);"Plea| 00000610 73 65 20 65 6e 74 65 72 20 74 68 65 20 6e 75 6d |se enter the num| 00000620 62 65 72 73 2e 2e 2e 22 0d 03 16 0d f1 20 8a 34 |bers..."..... .4| 00000630 2c 31 30 29 3b 0d 03 20 14 e3 20 65 6e 74 65 72 |,10);.. .. enter| 00000640 3d 31 20 b8 20 63 6f 6d 70 0d 03 2a 05 f5 0d 03 |=1 . comp..*....| 00000650 34 21 67 75 65 73 73 3d a5 3a fd 20 67 75 65 73 |4!guess=.:. gues| 00000660 73 3e 34 37 20 80 20 67 75 65 73 73 3c 35 38 0d |s>47 . guess<58.| 00000670 03 3e 13 f1 3b 67 75 65 73 73 2d 34 38 3b 22 20 |.>..;guess-48;" | 00000680 22 3b 0d 03 48 20 d4 20 26 31 31 2c 2d 31 35 2c |";..H . &11,-15,| 00000690 28 67 75 65 73 73 2d 34 38 29 2a 32 30 2b 36 30 |(guess-48)*20+60| 000006a0 2c 35 0d 03 52 2f e7 20 67 75 65 73 73 3d 97 28 |,5..R/. guess=.(| 000006b0 c1 73 65 71 24 2c 65 6e 74 65 72 2c 31 29 29 20 |.seq$,enter,1)) | 000006c0 63 6f 72 72 65 63 74 3d 63 6f 72 72 65 63 74 2b |correct=correct+| 000006d0 31 0d 03 5c 0b ed 20 65 6e 74 65 72 0d 03 66 0d |1..\.. enter..f.| 000006e0 f1 20 8a 34 2c 31 32 29 3b 0d 03 70 10 d1 3d 30 |. .4,12);..p..=0| 000006f0 3a f5 20 fd 20 91 3e 32 35 0d 03 7a 13 e3 20 73 |:. . .>25..z.. s| 00000700 68 6f 77 3d 31 20 b8 20 63 6f 6d 70 0d 03 84 17 |how=1 . comp....| 00000710 63 68 61 72 24 3d c1 73 65 71 24 2c 73 68 6f 77 |char$=.seq$,show| 00000720 2c 31 29 0d 03 8e 10 f1 20 63 68 61 72 24 3b 22 |,1)..... char$;"| 00000730 20 22 3b 0d 03 98 1f d4 20 26 31 31 2c 2d 31 35 | ";..... &11,-15| 00000740 2c 28 bb 20 63 68 61 72 24 29 2a 32 30 2b 36 30 |,(. char$)*20+60| 00000750 2c 35 0d 03 a2 10 d1 3d 30 3a f5 20 fd 20 91 3e |,5.....=0:. . .>| 00000760 32 35 0d 03 ac 0a ed 20 73 68 6f 77 0d 03 b6 28 |25..... show...(| 00000770 e7 20 63 6f 72 72 65 63 74 3d 63 6f 6d 70 20 63 |. correct=comp c| 00000780 6f 72 72 65 63 74 3d b9 20 8b 20 63 6f 72 72 65 |orrect=. . corre| 00000790 63 74 3d a3 0d 03 c0 07 fb 20 31 0d 03 ca 53 e7 |ct=...... 1...S.| 000007a0 20 63 6f 72 72 65 63 74 20 f1 20 8a 31 35 2c 31 | correct . .15,1| 000007b0 36 29 20 22 57 65 6c 6c 20 64 6f 6e 65 21 22 8a |6) "Well done!".| 000007c0 31 30 2c 31 38 29 22 54 68 61 74 20 77 61 73 20 |10,18)"That was | 000007d0 74 68 65 20 63 6f 72 72 65 63 74 22 8a 31 36 2c |the correct".16,| 000007e0 31 39 29 22 61 6e 73 77 65 72 21 21 22 3b 0d 03 |19)"answer!!";..| 000007f0 d4 52 e7 20 ac 20 63 6f 72 72 65 63 74 20 f1 20 |.R. . correct . | 00000800 8a 31 36 2c 31 36 29 20 22 42 61 64 20 6c 75 63 |.16,16) "Bad luc| 00000810 6b 22 8a 31 30 2c 31 38 29 22 59 6f 75 20 63 68 |k".10,18)"You ch| 00000820 6f 73 65 20 74 68 65 20 77 72 6f 6e 67 22 8a 31 |ose the wrong".1| 00000830 36 2c 31 39 29 22 61 6e 73 77 65 72 21 21 22 3b |6,19)"answer!!";| 00000840 0d 03 de 10 64 75 6d 6d 79 3d a6 28 32 30 30 29 |....dummy=.(200)| 00000850 0d 03 e8 0c 3d 63 6f 72 72 65 63 74 0d ff |....=correct..| 0000085e