home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Run Magazine ReRun 1985 Winter
/
rerun-1985-winter.d64
/
brainstorming
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
7KB
|
217 lines
10 poke53280,1:poke53281,1:print"[150]"
15 dimz$(48),d$(11,11):l$="":ls$=""
20 sp$=" ":di$="headings"
25 fort=1to7:readr$(t):next:fort=1to48:readz$(t):next
30 n1=18:n2=62:n3=146:g=40:r=1:ft=g:b=0:dimi$(g),id$(10,g,10),lc(15)
35 gosub160 rem input ideas
40 gosub180 rem group ideas
45 gosub265 rem remove ideas
50 gosub310 rem replace buffered items
55 gosub615 rem check for a without b
60 gosub405 rem headings
65 gosub750 rem rearrange headings
70 gosub435 rem thesis statement
75 gosub450 rem rough draft
80 gosub495 rem pick best-worded item
85 gosub535 rem rephrase headings
90 gosub570 rem rephrase sub headings
95 gosub685 rem subdivide subheadings
100 gosub855 rem final check then print
105 goto45
110 c=64:limit=lc(u)
115 iflc(u)=0thenlimit=r
120 forp=1tolimit:f=1
125 ifid$(u,p,0)=""thenfori=p+1toli+1:id$(u,i-1,0)=id$(u,i,0):next
130 ifid$(u,p,0)=""then150
135 c=c+1:printleft$(ls$,0)chr$(c)chr$(n1)chr$(n2)chr$(n3)id$(u,p,0)
140 ifid$(u,p,f)<>""thenprintleft$(ls$,2)f"[157]. "id$(u,p,f):f=f+1:goto140
145 next
150 lc(u)=p-1:iflc(u)>hithenhi=lc(u)
155 return
160 z=1:gosub945:z=2:gosub955:z=4:gosub955
165 n=14:gosub975
170 input"[145][145]";i$(r):ifi$(r)=""thenreturn
175 r=r+1:gosub735:goto165
180 uc=0:z=5:gosub945:z=6:gosub955:z=7:gosub950:z=9:gosub950
185 z=10:gosub950:z=11:gosub950
190 d=1:c=1:uc=uc+1
195 ifi$(d)=""thend=d+1:ifd<gthen195
200 id$(uc,1,0)=i$(d):n=12:gosub975:print"[145][145]"i$(d):i$(d)=""
205 fort=d+1tor
210 ifi$(t)=""then250
215 n=15:gosub975:print"[145][145]"i$(t)
220 geta$:ifa$="y"then235
225 ifa$="n"then245
230 goto220
235 c=c+1:id$(uc,c,0)=i$(t):i$(t)=""
240 ifc>14thenz=40:gosub960:fort=1to1000:next:goto255
245 n=14:gosub975
250 next
255 fork=dtor:ifi$(k)<>""then190
260 next:return
265 u=0:b=1
270 u=u+1:ifu=uc+1thenreturn
275 z=0:z$(0)=z$(14)+str$(u):gosub945:gosub110
280 z=15:gosub955:z=16:gosub950:z=12:gosub950
285 geta$:a=asc(a$+chr$(0))
290 ifa=13then270
295 ifa<65ora>cthen285
300 id$(uc+1,b,0)=id$(u,a-64,0):b=b+1:lc(uc+1)=lc(uc+1)+1
305 id$(u,a-64,0)="":id$(u,a-64,1)="":goto275
310 uu=1
315 ifb$="+"thenreturn
320 u=uc+1:z=19:gosub945:gosub110:cc=c
325 z=0:z$(0)=z$(14)+str$(uu):gosub955
330 u=uu:gosub110:z$(0)=z$(20)+str$(u):gosub955:z=16:gosub950:z=3:gosub955
335 geta$:a=asc(a$+chr$(0))
340 ifa=13then370
345 ifa=136then365
350 ifa=45thenid$(uu,1,0)="":return
355 ifa<65ora>ccthen335
360 id$(uu,p,0)=id$(uc+1,a-64,0):id$(uc+1,a-64,0)="":lc(u)=lc(u)+1:goto315
365 input"";i$:id$(uu,p,0)=i$:r=r+1:lc(u)=lc(u)+1:gosub735:goto315
370 uu=uu+1:ifuu<>uc+1then315
375 z=21:gosub945:z=22:gosub950:z=47:gosub970
380 fort=1tolc(uc+1):id$(uc+1,t,0)="":next
385 geta$:ifa$=""then385
390 ifa$="_"then45
395 ifa$="+"thenu=uc:uc=uc+1:goto315
400 return
405 fort=1tolc(uc+1):id$(uc+1,t,0)="":next:z=23:gosub945:u=1
410 z=0:z$(z)=z$(28)+str$(u):gosub955:print:gosub110
415 input"heading";id$(u,0,0)
420 ifid$(u,0,0)=""thenid$(u,0,0)="(no heading)"
425 u=u+1:ifu=uc+1thenreturn
430 goto410
435 z=46:gosub945:z=45:gosub950
440 input"";thesis$:ifth$=""thenth$=t$
445 t$=th$:return
450 z=25:gosub945
455 z=0:z$(z)=th$:gosub955
460 u=1:n1=27:n2=46:n3=32
465 print""id$(u,0,0)"":gosub110
470 u=u+1
475 z=35:gosub965
480 geta$:ifa$=""then480
485 ifu=uc+1thenreturn
490 goto465
495 e=0
500 z$(0)=z$(8)+" "+di$:z=0:gosub945:z=27:gosub950:z=44:ft=42:gosub955
505 ifdi$="items"thene=e+1:u=e:print""id$(e,0,0)"":gosub110:goto515
510 foru=1touc:print""chr$(u+64)". "id$(u,0,0):next
515 geta$:ifa$=""then515
520 ifa$=chr$(13)thena=0:goto530
525 a=asc(a$)-64:ifa<0thena=0
530 return
535 ifa=0thenreturn
540 z=31:gosub945:z=32:gosub950:print:z=0:z$(z)=id$(a,0,0)+" ":gosub965
545 z=44:ft=42:gosub955
550 fory=1touc:ifid$(a,0,0)=id$(y,0,0)then565
555 n=12:gosub975:print"[145][145]"id$(y,0,0)
560 input"change to";id$(y,0,0):n=15:gosub975
565 next:return
570 di$="items":gosub500:ifa=0then605
575 z=24:gosub945:z=32:gosub950:print:z=0:z$(z)=""+id$(e,a,0):gosub965
580 z=44:ft=42:gosub955
585 fory=1top-1:ifid$(e,a,0)=id$(e,y,0)then600
590 n=12:gosub975:print"[145][145]"id$(e,y,0)
595 input"change to";id$(e,y,0):n=15:gosub975
600 next
605 ife=ucthenreturn
610 goto570
615 u=0:n=0
620 u=u+1:ifu>ucthenreturn
625 ifid$(u,1,0)=""then665
630 ifid$(u,2,0)=""then640
635 goto620
640 z=34:gosub945:z=0:z$(z)=z$(28)+str$(u)+" "+z$(36):gosub955
645 z=37:gosub955:z=38:gosub955:gosub110
650 getb$:ifb$="_"then665
655 ifb$="+"thenuu=u:k=u:lc(u)=lc(u)+1:gosub325:u=k:goto620
660 goto650
665 m=u
670 fort=1tohi:id$(m,t,0)=id$(m+1,t,0):id$(m+1,t,0)="":next
675 lc(m)=lc(m+1):m=m+1:ifm=>ucthenuc=uc-1:goto620
680 goto670
685 u=1
690 z=39:gosub945:print"[145]";:z=43:gosub950:z=44:ft=42:gosub955
695 e=0:print""id$(u,0,0)"":gosub110
700 geta$:a=asc(a$+chr$(0)):ifa=13then725
705 ifa<65ora>p+64then700
710 print""id$(u,a-64,0)"
715 e[178]e[170]1:[133]i$:[139]i$[178]""[167]id$(u,a[171]64,e)[178]"":[137]690
720 id$(u,a[171]64,e)[178]i$:i$[178]"":[137]715
725 [139]u[179]uc[167]u[178]u[170]1:[137]690
730 [142]
735 [139]r[179]35[167]745
740 [153]" warning: only "g[171]r"cmd more ideas allowed onon":[129]s[178]1[164]2000:[130]
745 [142]
750 u[178]1:zz[178]18
755 z[178]13:[141]945:z[178]17:[141]955:z[178]12:[141]950
760 [161]a$:[139]a$[178]"_"[167]775
765 [139]a$[179][177]""[167]850
770 [137]760
775 [129]t[178]1[164]uc:[153]t" - "id$(t,0,0):[130]
780 z[178]zz:[141]955:zz[178]29
785 [161]a$:a[178]([198](a$[170][199](0)))[171]48:[139]a$[178]""[167]785
790 [139]a[179]1[176]a[177]9[167]785
795 [139]u[179][178]uc[175]id$(a,0,0)[178]""[167]785
800 x$(u)[178]id$(a,0,0):id$(a,0,0)[178]""
805 [129]t[178]1[164]lc(a):d$(u,t)[178]id$(a,t,0):w[178]1
810 [139]id$(a,t,w)[179][177]""[167]y$(u,t,w)[178]id$(a,t,w):w[178]w[170]1:[137]810
815 [130]:l(u)[178]lc(a):id$(u,t,0)[178]""
820 u[178]u[170]1:[139]u[177]uc[167]830
825 [129]t[178]1[164]u:[153]x$(t):[130]:[153]"":[137]775
830 u[178]1:[129]t[178]1[164]uc:id$(t,0,0)[178]x$(t):x$(t)[178]"":lc(t)[178]l(t):[130]
835 [129]t[178]1[164]l(u):id$(u,t,0)[178]d$(u,t):w[178]1:id$(u,t,1)[178]""
840 [139]y$(u,t,w)[179][177]""[167]id$(u,t,w)[178]y$(u,t,w):w[178]w[170]1:[137]840
845 [130]:id$(u,t[171]1,w)[178]"":u[178]u[170]1:[139]u[179][178]uc[167]835
850 [142]
855 z[178]26:[141]945:z[178]43:[141]950
860 [141]460:[153]"":z[178]21:[141]970:z[178]42:[141]970:z[178]41:[141]950
865 [161]b$:[139]b$[178]"_"[167]di$[178]"headings":[142]
870 [139]b$[178]"p"[167]880
875 [137]865
880 [159]3,4:[157]3
885 a[178]1:b[178]1:[153]"thesis: "th$:[153]:[153]
890 c[178]1:[153]r$(a)" "id$(a,0,0):[153]
895 [153]" "[199](b[170]64)". "id$(a,b,0):[153]
900 [139]id$(a,b,c)[178]""[167]910
905 [153],[199](c[170]48)". "id$(a,b,c):c[178]c[170]1:[137]900
910 [139]c[177]1[167][153]:c[178]1
915 b[178]b[170]1:[139]id$(a,b,0)[179][177]""[167]895
920 a[178]a[170]1:b[178]1:[139]id$(a,b,0)[179][177]""[167][153]:[137]890
925 [152]3,:[160]3:z[178]48:[141]945
930 [161]a$:[139]a$[178]"y"[167][142]
935 [139]a$[178]"n"[167][128]
940 [137]930
945 [153]"load";
950 l[178]ft[171]([195](z$(z))):[129]t[178]1[164]l[173]2:[153]" ";:[130]:[153]z$(z):ft[178]40:[142]
955 [153]"";:[137]950
960 [153]"";:[137]950
965 z$(z)[178]""[170]z$(z):[137]950
970 ft[178]42:[137]950
975 [153][200](l$,n)sp$[170]sp$;:[142]
980 [131] " i."," ii.","iii."," iv."," v."," vi.","vii."
985 [131]" brainstorm ",type any idea that comes to mind
990 [131] "to add an item type f-7 "
995 [131] but limit each to two screen lines,now you must group your ideas
1000 [131] the computer will present them,two at a time,next rephrase your
1005 [131] if you agree that the two are similar,"press y wait"
1010 [131] "if not, press n wait","otherwise press return ",to resequence
1015 [131] here is group,to remove any items from this group,type its letter
1020 [131] "type _ wait",which one first?
1025 [131] you removed (buffered) these items,to move buffered items to group
1030 [131] "to rearrange groups further type _ ",otherwise hit any key
1035 [131] now you must give each group a heading,make the other subheadings
1040 [131] here is a rough-draft of your outline,here is your finished outline
1045 [131] type the letter of your best-w