Home » Personal collection » Acorn tapes » Electron_User » Electron_User_tape18b_acorn_eu_1991_january.wav » R.Anagram

R.Anagram

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 tapes » Electron_User » Electron_User_tape18b_acorn_eu_1991_january.wav
Filename: R.Anagram
Read OK:
File size: 0305 bytes
Load address: FFFF1900
Exec address: FFFF802B
Duplicates

There are 2 duplicate copies of this file in the archive:

File contents
   10REM Anagram Game
   20REM by Katharine Brent
   30REM (c) The Micro User
   40REM January 1991
   50READ num:word=0:sc=0:DIM word$(num):MODE 1:VDU 19,0,4;0;19,1,6;0;:FOR count=1 TO num:READ word$(count):NEXT
   60REPEAT:word=word+1:seed=RND(-TIME)
   70this$=word$(RND(num)):mix$="":left$=this$:count=LEN(this$):REPEAT
   80rnd=RND(count):mix$=mix$+MID$(left$,rnd,1):left$=LEFT$(left$,rnd-1)+RIGHT$(left$,LEN(left$)-rnd):count=count-1:UNTIL left$="":IF mix$=this$ THEN 160
   90CLS:COLOUR 1:PRINT TAB(15,5)mix$:COLOUR 2:INPUT TAB(6,11)"Please type in your answer"TAB(15,16)ans$
  100IF ans$=this$ THEN CLS:COLOUR 2:PRINT TAB(14,10)"CORRECT!":sc=sc+10 ELSE CLS:COLOUR 1:PRINT TAB(16,10)"WRONG!":COLOUR 3:PRINT TAB(5,18)"The correct answer to ";mix$;'TAB(5);"is ";this$
  110time=TIME:REPEAT UNTIL TIME>=time+150:UNTIL word=10:CLS
  120PRINT TAB(5,16)"You scored ";sc;" out of 100";TAB(0,20);:END
  130DATA 10
  140DATA MICRO,KEYS,USER,PRINTER,DISC,TYPIST,BASIC,MANUAL,ANAGRAM,SCRAMBLE

� Anagram Game
� by Katharine Brent
� (c) The Micro User
(� January 1991
2\� num:word=0:sc=0:� word$(num):� 1:� 19,0,4;0;19,1,6;0;:� count=1 � num:� word$(count):�
<�:word=word+1:seed=�(-�)
F<this$=word$(�(num)):mix$="":left$=this$:count=�(this$):�
P~rnd=�(count):mix$=mix$+�left$,rnd,1):left$=�left$,rnd-1)+�left$,�(left$)-rnd):count=count-1:� left$="":� mix$=this$ � �t`@
ZJ�:� 1:� �15,5)mix$:� 2:� �6,11)"Please type in your answer"�15,16)ans$
d�� ans$=this$ � �:� 2:� �14,10)"CORRECT!":sc=sc+10 � �:� 1:� �16,10)"WRONG!":� 3:� �5,18)"The correct answer to ";mix$;'�5);"is ";this$
n&time=�:� � �>=time+150:� word=10:�
x4� �5,16)"You scored ";sc;" out of 100";�0,20);:�
�� 10
�G� MICRO,KEYS,USER,PRINTER,DISC,TYPIST,BASIC,MANUAL,ANAGRAM,SCRAMBLE
�
00000000  0d 00 0a 12 f4 20 41 6e  61 67 72 61 6d 20 47 61  |..... Anagram Ga|
00000010  6d 65 0d 00 14 18 f4 20  62 79 20 4b 61 74 68 61  |me..... by Katha|
00000020  72 69 6e 65 20 42 72 65  6e 74 0d 00 1e 18 f4 20  |rine Brent..... |
00000030  28 63 29 20 54 68 65 20  4d 69 63 72 6f 20 55 73  |(c) The Micro Us|
00000040  65 72 0d 00 28 12 f4 20  4a 61 6e 75 61 72 79 20  |er..(.. January |
00000050  31 39 39 31 0d 00 32 5c  f3 20 6e 75 6d 3a 77 6f  |1991..2\. num:wo|
00000060  72 64 3d 30 3a 73 63 3d  30 3a de 20 77 6f 72 64  |rd=0:sc=0:. word|
00000070  24 28 6e 75 6d 29 3a eb  20 31 3a ef 20 31 39 2c  |$(num):. 1:. 19,|
00000080  30 2c 34 3b 30 3b 31 39  2c 31 2c 36 3b 30 3b 3a  |0,4;0;19,1,6;0;:|
00000090  e3 20 63 6f 75 6e 74 3d  31 20 b8 20 6e 75 6d 3a  |. count=1 . num:|
000000a0  f3 20 77 6f 72 64 24 28  63 6f 75 6e 74 29 3a ed  |. word$(count):.|
000000b0  0d 00 3c 1c f5 3a 77 6f  72 64 3d 77 6f 72 64 2b  |..<..:word=word+|
000000c0  31 3a 73 65 65 64 3d b3  28 2d 91 29 0d 00 46 3c  |1:seed=.(-.)..F<|
000000d0  74 68 69 73 24 3d 77 6f  72 64 24 28 b3 28 6e 75  |this$=word$(.(nu|
000000e0  6d 29 29 3a 6d 69 78 24  3d 22 22 3a 6c 65 66 74  |m)):mix$="":left|
000000f0  24 3d 74 68 69 73 24 3a  63 6f 75 6e 74 3d a9 28  |$=this$:count=.(|
00000100  74 68 69 73 24 29 3a f5  0d 00 50 7e 72 6e 64 3d  |this$):...P~rnd=|
00000110  b3 28 63 6f 75 6e 74 29  3a 6d 69 78 24 3d 6d 69  |.(count):mix$=mi|
00000120  78 24 2b c1 6c 65 66 74  24 2c 72 6e 64 2c 31 29  |x$+.left$,rnd,1)|
00000130  3a 6c 65 66 74 24 3d c0  6c 65 66 74 24 2c 72 6e  |:left$=.left$,rn|
00000140  64 2d 31 29 2b c2 6c 65  66 74 24 2c a9 28 6c 65  |d-1)+.left$,.(le|
00000150  66 74 24 29 2d 72 6e 64  29 3a 63 6f 75 6e 74 3d  |ft$)-rnd):count=|
00000160  63 6f 75 6e 74 2d 31 3a  fd 20 6c 65 66 74 24 3d  |count-1:. left$=|
00000170  22 22 3a e7 20 6d 69 78  24 3d 74 68 69 73 24 20  |"":. mix$=this$ |
00000180  8c 20 8d 74 60 40 0d 00  5a 4a db 3a fb 20 31 3a  |. .t`@..ZJ.:. 1:|
00000190  f1 20 8a 31 35 2c 35 29  6d 69 78 24 3a fb 20 32  |. .15,5)mix$:. 2|
000001a0  3a e8 20 8a 36 2c 31 31  29 22 50 6c 65 61 73 65  |:. .6,11)"Please|
000001b0  20 74 79 70 65 20 69 6e  20 79 6f 75 72 20 61 6e  | type in your an|
000001c0  73 77 65 72 22 8a 31 35  2c 31 36 29 61 6e 73 24  |swer".15,16)ans$|
000001d0  0d 00 64 8a e7 20 61 6e  73 24 3d 74 68 69 73 24  |..d.. ans$=this$|
000001e0  20 8c 20 db 3a fb 20 32  3a f1 20 8a 31 34 2c 31  | . .:. 2:. .14,1|
000001f0  30 29 22 43 4f 52 52 45  43 54 21 22 3a 73 63 3d  |0)"CORRECT!":sc=|
00000200  73 63 2b 31 30 20 8b 20  db 3a fb 20 31 3a f1 20  |sc+10 . .:. 1:. |
00000210  8a 31 36 2c 31 30 29 22  57 52 4f 4e 47 21 22 3a  |.16,10)"WRONG!":|
00000220  fb 20 33 3a f1 20 8a 35  2c 31 38 29 22 54 68 65  |. 3:. .5,18)"The|
00000230  20 63 6f 72 72 65 63 74  20 61 6e 73 77 65 72 20  | correct answer |
00000240  74 6f 20 22 3b 6d 69 78  24 3b 27 8a 35 29 3b 22  |to ";mix$;'.5);"|
00000250  69 73 20 22 3b 74 68 69  73 24 0d 00 6e 26 74 69  |is ";this$..n&ti|
00000260  6d 65 3d 91 3a f5 20 fd  20 91 3e 3d 74 69 6d 65  |me=.:. . .>=time|
00000270  2b 31 35 30 3a fd 20 77  6f 72 64 3d 31 30 3a db  |+150:. word=10:.|
00000280  0d 00 78 34 f1 20 8a 35  2c 31 36 29 22 59 6f 75  |..x4. .5,16)"You|
00000290  20 73 63 6f 72 65 64 20  22 3b 73 63 3b 22 20 6f  | scored ";sc;" o|
000002a0  75 74 20 6f 66 20 31 30  30 22 3b 8a 30 2c 32 30  |ut of 100";.0,20|
000002b0  29 3b 3a e0 0d 00 82 08  dc 20 31 30 0d 00 8c 47  |);:...... 10...G|
000002c0  dc 20 4d 49 43 52 4f 2c  4b 45 59 53 2c 55 53 45  |. MICRO,KEYS,USE|
000002d0  52 2c 50 52 49 4e 54 45  52 2c 44 49 53 43 2c 54  |R,PRINTER,DISC,T|
000002e0  59 50 49 53 54 2c 42 41  53 49 43 2c 4d 41 4e 55  |YPIST,BASIC,MANU|
000002f0  41 4c 2c 41 4e 41 47 52  41 4d 2c 53 43 52 41 4d  |AL,ANAGRAM,SCRAM|
00000300  42 4c 45 0d ff                                    |BLE..|
00000305
R.Anagram.m0
R.Anagram.m1
R.Anagram.m2
R.Anagram.m4
R.Anagram.m5