Home » Archimedes archive » Acorn User » AU 1998-10.adf » Regulars » StarInfo/nonsense/Gogogoch
StarInfo/nonsense/Gogogoch
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 » Archimedes archive » Acorn User » AU 1998-10.adf » Regulars |
Filename: | StarInfo/nonsense/Gogogoch |
Read OK: | ✔ |
File size: | 0557 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
10REM Name: Gogogoch 20REM Author: Philip Mellor 30REM 40REM e-mail: yr92pm4@hors4th.demon.co.uk 50REM web: http://members.tripod.com/~microsloth/ 60 70REM Overlaps words at the start and end of others 80REM eg. chaplain 90REM inapplicable -> chaplainapplicable 100REM to create very long words. 110 120SYS "Spell_ImpressionInfo" TO ,words 130 140PRINT "Enter source word (hit Return for random" 150INPUT text$ 160IF text$="" text$=FNgetword(RND(words)) 170timestried%=0 180REPEAT 190CLS 200PRINT TAB(0,0);text$ 210 220timestried%+=1 230 240IF RND(4)=1 check%=1 ELSE check%=2 250CASE RND(2) OF 260WHEN 1:REM ADD TO LEFT 270add%=FALSE:tried%=0 280REPEAT 290tried%+=1 300new$=FNgetword(RND(words)) 310cc%=LEN(new$) 320REPEAT 330text2$=LEFT$(text$,cc%) 340new2$=RIGHT$(new$,cc%) 350IF new2$=text2$ THEN 360add%=TRUE 370text$=new$+RIGHT$(text$,LEN(text$)-cc%) 380ENDIF 390cc%-=1 400UNTIL cc%<check% OR add% 410UNTIL add% OR tried%>50 420 430WHEN 2:REM ADD TO RIGHT 440add%=FALSE:tried%=0 450REPEAT 460tried%+=1 470new$=FNgetword(RND(words)) 480cc%=LEN(new$) 490REPEAT 500text2$=RIGHT$(text$,cc%) 510new2$=LEFT$(new$,cc%) 520IF new2$=text2$ THEN 530add%=TRUE 540text$=LEFT$(text$,LEN(text$)-cc%)+new$ 550ENDIF 560cc%-=1 570UNTIL cc%<check% OR add% 580UNTIL add% OR tried%>50 590 600ENDCASE 610 620IF add% timestried%=0 630timestried%+=1 640REMPRINT ''text$ 650 660UNTIL timestried%>50 OR LEN(text$)>40 670 680CLS 690PRINT text$ 700 710END 720 730DEFFNgetword(w%) 740SYS "Spell_GetWord",w% TO ,a% 750a$="" 760WHILE ?a%>=32 770 a$+=CHR$?a% 780 a%+=1 790ENDWHILE 800=a$
� Name: Gogogoch � Author: Philip Mellor � ()� e-mail: yr92pm4@hors4th.demon.co.uk 24� web: http://members.tripod.com/~microsloth/ < F3� Overlaps words at the start and end of others P� eg. chaplain Z5� inapplicable -> chaplainapplicable d � to create very long words. n x&ș "Spell_ImpressionInfo" � ,words � �0� "Enter source word (hit Return for random" �� text$ �'� text$="" text$=�getword(�(words)) �timestried%=0 �� �� �� �0,0);text$ � �timestried%+=1 � � � �(4)=1 check%=1 � check%=2 � Ȏ �(2) � � 1:� ADD TO LEFT add%=�:tried%=0 � " tried%+=1 ,new$=�getword(�(words)) 6cc%=�(new$) @� Jtext2$=�text$,cc%) Tnew2$=�new$,cc%) ^� new2$=text2$ � h add%=� r#text$=new$+�text$,�(text$)-cc%) |� � cc%-=1 �� cc%<check% � add% �� add% � tried%>50 � �� 2:� ADD TO RIGHT �add%=�:tried%=0 �� � tried%+=1 �new$=�getword(�(words)) �cc%=�(new$) �� �text2$=�text$,cc%) �new2$=�new$,cc%) � new2$=text2$ � add%=� #text$=�text$,�(text$)-cc%)+new$ &� 0 cc%-=1 :� cc%<check% � add% D� add% � tried%>50 N X� b l� add% timestried%=0 vtimestried%+=1 ��PRINT ''text$ � �"� timestried%>50 � �(text$)>40 � �� �� text$ � �� � �ݤgetword(w%) �ș "Spell_GetWord",w% � ,a% � a$="" �ȕ ?a%>=32 a$+=�?a% a%+=1 � =a$ �
00000000 0d 00 0a 16 f4 20 20 20 4e 61 6d 65 3a 20 47 6f |..... Name: Go| 00000010 67 6f 67 6f 63 68 0d 00 14 1b f4 20 41 75 74 68 |gogoch..... Auth| 00000020 6f 72 3a 20 50 68 69 6c 69 70 20 4d 65 6c 6c 6f |or: Philip Mello| 00000030 72 0d 00 1e 05 f4 0d 00 28 29 f4 20 65 2d 6d 61 |r.......(). e-ma| 00000040 69 6c 3a 20 79 72 39 32 70 6d 34 40 68 6f 72 73 |il: yr92pm4@hors| 00000050 34 74 68 2e 64 65 6d 6f 6e 2e 63 6f 2e 75 6b 0d |4th.demon.co.uk.| 00000060 00 32 34 f4 20 20 20 20 77 65 62 3a 20 68 74 74 |.24. web: htt| 00000070 70 3a 2f 2f 6d 65 6d 62 65 72 73 2e 74 72 69 70 |p://members.trip| 00000080 6f 64 2e 63 6f 6d 2f 7e 6d 69 63 72 6f 73 6c 6f |od.com/~microslo| 00000090 74 68 2f 0d 00 3c 04 0d 00 46 33 f4 20 4f 76 65 |th/..<...F3. Ove| 000000a0 72 6c 61 70 73 20 77 6f 72 64 73 20 61 74 20 74 |rlaps words at t| 000000b0 68 65 20 73 74 61 72 74 20 61 6e 64 20 65 6e 64 |he start and end| 000000c0 20 6f 66 20 6f 74 68 65 72 73 0d 00 50 14 f4 20 | of others..P.. | 000000d0 65 67 2e 20 20 20 63 68 61 70 6c 61 69 6e 0d 00 |eg. chaplain..| 000000e0 5a 35 f4 20 20 20 20 20 20 20 20 20 20 20 20 20 |Z5. | 000000f0 69 6e 61 70 70 6c 69 63 61 62 6c 65 20 20 2d 3e |inapplicable ->| 00000100 20 63 68 61 70 6c 61 69 6e 61 70 70 6c 69 63 61 | chaplainapplica| 00000110 62 6c 65 0d 00 64 20 f4 20 74 6f 20 63 72 65 61 |ble..d . to crea| 00000120 74 65 20 76 65 72 79 20 6c 6f 6e 67 20 77 6f 72 |te very long wor| 00000130 64 73 2e 0d 00 6e 04 0d 00 78 26 c8 99 20 22 53 |ds...n...x&.. "S| 00000140 70 65 6c 6c 5f 49 6d 70 72 65 73 73 69 6f 6e 49 |pell_ImpressionI| 00000150 6e 66 6f 22 20 b8 20 2c 77 6f 72 64 73 0d 00 82 |nfo" . ,words...| 00000160 04 0d 00 8c 30 f1 20 22 45 6e 74 65 72 20 73 6f |....0. "Enter so| 00000170 75 72 63 65 20 77 6f 72 64 20 28 68 69 74 20 52 |urce word (hit R| 00000180 65 74 75 72 6e 20 66 6f 72 20 72 61 6e 64 6f 6d |eturn for random| 00000190 22 0d 00 96 0b e8 20 74 65 78 74 24 0d 00 a0 27 |"..... text$...'| 000001a0 e7 20 74 65 78 74 24 3d 22 22 20 74 65 78 74 24 |. text$="" text$| 000001b0 3d a4 67 65 74 77 6f 72 64 28 b3 28 77 6f 72 64 |=.getword(.(word| 000001c0 73 29 29 0d 00 aa 11 74 69 6d 65 73 74 72 69 65 |s))....timestrie| 000001d0 64 25 3d 30 0d 00 b4 05 f5 0d 00 be 05 db 0d 00 |d%=0............| 000001e0 c8 11 f1 20 8a 30 2c 30 29 3b 74 65 78 74 24 0d |... .0,0);text$.| 000001f0 00 d2 04 0d 00 dc 12 74 69 6d 65 73 74 72 69 65 |.......timestrie| 00000200 64 25 2b 3d 31 0d 00 e6 04 0d 00 f0 20 e7 20 b3 |d%+=1....... . .| 00000210 28 34 29 3d 31 20 63 68 65 63 6b 25 3d 31 20 8b |(4)=1 check%=1 .| 00000220 20 63 68 65 63 6b 25 3d 32 0d 00 fa 0d c8 8e 20 | check%=2...... | 00000230 b3 28 32 29 20 ca 0d 01 04 15 c9 20 31 3a f4 20 |.(2) ...... 1:. | 00000240 41 44 44 20 54 4f 20 4c 45 46 54 0d 01 0e 13 61 |ADD TO LEFT....a| 00000250 64 64 25 3d a3 3a 74 72 69 65 64 25 3d 30 0d 01 |dd%=.:tried%=0..| 00000260 18 05 f5 0d 01 22 0d 74 72 69 65 64 25 2b 3d 31 |.....".tried%+=1| 00000270 0d 01 2c 1b 6e 65 77 24 3d a4 67 65 74 77 6f 72 |..,.new$=.getwor| 00000280 64 28 b3 28 77 6f 72 64 73 29 29 0d 01 36 0f 63 |d(.(words))..6.c| 00000290 63 25 3d a9 28 6e 65 77 24 29 0d 01 40 05 f5 0d |c%=.(new$)..@...| 000002a0 01 4a 16 74 65 78 74 32 24 3d c0 74 65 78 74 24 |.J.text2$=.text$| 000002b0 2c 63 63 25 29 0d 01 54 14 6e 65 77 32 24 3d c2 |,cc%)..T.new2$=.| 000002c0 6e 65 77 24 2c 63 63 25 29 0d 01 5e 14 e7 20 6e |new$,cc%)..^.. n| 000002d0 65 77 32 24 3d 74 65 78 74 32 24 20 8c 0d 01 68 |ew2$=text2$ ...h| 000002e0 0a 61 64 64 25 3d b9 0d 01 72 23 74 65 78 74 24 |.add%=...r#text$| 000002f0 3d 6e 65 77 24 2b c2 74 65 78 74 24 2c a9 28 74 |=new$+.text$,.(t| 00000300 65 78 74 24 29 2d 63 63 25 29 0d 01 7c 05 cd 0d |ext$)-cc%)..|...| 00000310 01 86 0a 63 63 25 2d 3d 31 0d 01 90 17 fd 20 63 |...cc%-=1..... c| 00000320 63 25 3c 63 68 65 63 6b 25 20 84 20 61 64 64 25 |c%<check% . add%| 00000330 0d 01 9a 16 fd 20 61 64 64 25 20 84 20 74 72 69 |..... add% . tri| 00000340 65 64 25 3e 35 30 0d 01 a4 04 0d 01 ae 16 c9 20 |ed%>50......... | 00000350 32 3a f4 20 41 44 44 20 54 4f 20 52 49 47 48 54 |2:. ADD TO RIGHT| 00000360 0d 01 b8 13 61 64 64 25 3d a3 3a 74 72 69 65 64 |....add%=.:tried| 00000370 25 3d 30 0d 01 c2 05 f5 0d 01 cc 0d 74 72 69 65 |%=0.........trie| 00000380 64 25 2b 3d 31 0d 01 d6 1b 6e 65 77 24 3d a4 67 |d%+=1....new$=.g| 00000390 65 74 77 6f 72 64 28 b3 28 77 6f 72 64 73 29 29 |etword(.(words))| 000003a0 0d 01 e0 0f 63 63 25 3d a9 28 6e 65 77 24 29 0d |....cc%=.(new$).| 000003b0 01 ea 05 f5 0d 01 f4 16 74 65 78 74 32 24 3d c2 |........text2$=.| 000003c0 74 65 78 74 24 2c 63 63 25 29 0d 01 fe 14 6e 65 |text$,cc%)....ne| 000003d0 77 32 24 3d c0 6e 65 77 24 2c 63 63 25 29 0d 02 |w2$=.new$,cc%)..| 000003e0 08 14 e7 20 6e 65 77 32 24 3d 74 65 78 74 32 24 |... new2$=text2$| 000003f0 20 8c 0d 02 12 0a 61 64 64 25 3d b9 0d 02 1c 23 | .....add%=....#| 00000400 74 65 78 74 24 3d c0 74 65 78 74 24 2c a9 28 74 |text$=.text$,.(t| 00000410 65 78 74 24 29 2d 63 63 25 29 2b 6e 65 77 24 0d |ext$)-cc%)+new$.| 00000420 02 26 05 cd 0d 02 30 0a 63 63 25 2d 3d 31 0d 02 |.&....0.cc%-=1..| 00000430 3a 17 fd 20 63 63 25 3c 63 68 65 63 6b 25 20 84 |:.. cc%<check% .| 00000440 20 61 64 64 25 0d 02 44 16 fd 20 61 64 64 25 20 | add%..D.. add% | 00000450 84 20 74 72 69 65 64 25 3e 35 30 0d 02 4e 04 0d |. tried%>50..N..| 00000460 02 58 05 cb 0d 02 62 04 0d 02 6c 18 e7 20 61 64 |.X....b...l.. ad| 00000470 64 25 20 74 69 6d 65 73 74 72 69 65 64 25 3d 30 |d% timestried%=0| 00000480 0d 02 76 12 74 69 6d 65 73 74 72 69 65 64 25 2b |..v.timestried%+| 00000490 3d 31 0d 02 80 12 f4 50 52 49 4e 54 20 27 27 74 |=1.....PRINT ''t| 000004a0 65 78 74 24 0d 02 8a 04 0d 02 94 22 fd 20 74 69 |ext$.......". ti| 000004b0 6d 65 73 74 72 69 65 64 25 3e 35 30 20 84 20 a9 |mestried%>50 . .| 000004c0 28 74 65 78 74 24 29 3e 34 30 0d 02 9e 04 0d 02 |(text$)>40......| 000004d0 a8 05 db 0d 02 b2 0b f1 20 74 65 78 74 24 0d 02 |........ text$..| 000004e0 bc 04 0d 02 c6 05 e0 0d 02 d0 04 0d 02 da 11 dd |................| 000004f0 a4 67 65 74 77 6f 72 64 28 77 25 29 0d 02 e4 1f |.getword(w%)....| 00000500 c8 99 20 22 53 70 65 6c 6c 5f 47 65 74 57 6f 72 |.. "Spell_GetWor| 00000510 64 22 2c 77 25 20 b8 20 2c 61 25 0d 02 ee 09 61 |d",w% . ,a%....a| 00000520 24 3d 22 22 0d 02 f8 0e c8 95 20 3f 61 25 3e 3d |$=""...... ?a%>=| 00000530 33 32 0d 03 02 0d 20 61 24 2b 3d bd 3f 61 25 0d |32.... a$+=.?a%.| 00000540 03 0c 0a 20 61 25 2b 3d 31 0d 03 16 05 ce 0d 03 |... a%+=1.......| 00000550 20 07 3d 61 24 0d ff | .=a$..| 00000557