home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
64'er Special 14
/
64er_Magazin_Sonderheft_14_19xx_Markt__Technik_de.d64
/
eliza
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
9KB
|
310 lines
10 print"[147]":
20 (NULL)4,8,4:(NULL)0,7,3:(NULL)1,8,7
30 rem august 1986
40 rem umgeschrieben von:m. holzmann
50 rem *****************************
60 rem abgeaendert fuer :plus/4,c 16
70 print" [213][195][195][195][195][195][195][195][195][195][195][195][201] "
80 print" [194] e l i z a [194]"
90 print" [202][195][195][195][195][195][195][195][195][195][195][195][203] "
100 print"
110 [153]"
120 print" eliza analysiert ihre probleme"
130 print
140 print" sie benoetigen:
150 [153]
160 [153]" 1) englischkenntnisse "
170 [153]
180 [153]" 2) (wenn 1 nicht vorhanden):
190 print" ein englischwoerterbuch"
200 print
210 print" 3) einige probleme "
220 print" (falls sie keine haben
230 [153]" druecken sie 'reset')
240 print"
250 [153]" 4) sehr viel geduld !!!"
260 [153]
270 [153]" wenn sie alles beisammen haben:
280 print" taste druecken "
290 print
300 get(NULL) aa$
310 (NULL)1,1:(NULL)0,2,6:(NULL)4,2,3
320 ifti<lthen 320
330 print"[147]"
340 dim s(42),n(42),r(42),k$(42)
350 n(1) = 3:k$(1) ="can you":s$(1)= " are ":r$(1)=" am "
360 n(2) = 2:k$(2) ="can i":s$(2)=" were":r$(2)= " was "
370 n(3) = 4:k$(3) ="you are":s$(3)= " me ":r$(3)= " you "
380 n(4) =-4:k$(4) ="youre" :s$(4)="your":r$(4)=" my "
390 n(5) = 4:k$(5) ="i dont":s$(5)="ive":r$(5)="youve"
400 n(6) = 3:k$(6) ="i feel":s$(6)=" im ":r$(6)="youre"
410 n(7) = 3:k$(7) ="why dont you":s$(7)=" i":r$(7)=" you "
420 n(8) = 2:k$(8) ="why cant i"
430 n(9) = 3:k$(9) ="are you"
440 n(10)= 3:k$(10)="i cant"
450 n(11)= 4:k$(11)="i am"
460 n(12)=-4:k$(12)=" im"
470 n(13)= 3:k$(13)="you "
480 n(14)= 5:k$(14)="i want"
490 n(15)= 9:k$(15)="what "
500 n(16)=-9:k$(16)="how "
510 n(17)=-9:k$(17)="who "
520 n(18)=-9:k$(18)="where "
530 n(19)=-9:k$(19)="when "
540 n(20)=-9:k$(20)="why "
550 n(21)= 2:k$(21)="name"
560 n(22)= 4:k$(22)="cause"
570 n(23)= 4:k$(23)="sorry"
580 n(24)= 4:k$(24)="dream"
590 n(25)= 1:k$(25)="hello"
600 n(26)=-1:k$(26)="hi "
610 n(27)= 5:k$(27)="maybe"
620 n(28)= 5:k$(28)="no "
630 n(29)= 2:k$(29)="your"
640 n(30)= 4:k$(30)="always"
650 n(31)= 3:k$(31)="think"
660 n(32)= 7:k$(32)="like a"
670 n(33)= 3:k$(33)="yes "
680 n(34)= 6:k$(34)="friend"
690 n(35)= 7:k$(35)="computer"
700 n(36)= 3:k$(36)="eliza"
710 n(37)= 3:k$(37)="money"
720 n(38)= 1:k$(38)="i love"
730 n(39)= 1:k$(39)="love "
740 n(40)= 1:k$(40)="eberhard"
750 n(41)= 3:k$(41)="i hate"
760 n(42)= 7:k$(42)="nokeyfound"
770 goto 840
780 rem
790 for a=1 to len(x$)-len(y$)+1
800 if mid$(x$,a,len(y$))=y$ then return
810 next a
820 a=0
830 return
840 n1=42:n2=14:n3=120
850 s(1)=1
860 for i=2 to n1 step 1
870 s(i)=s(i-1)+abs(n(i-1))
880 n(i-1)=s(i)-1
890 if n(i)<0 then 920
900 r(i)=s(i)
910 goto 930
920 s(i)=s(i-1):r(i)=r(i-1)
930 next i
940 n(n1)=s(n1)+n(n1)-1
950 print"[209]: hi, i am eliza tell me your problem":print
960 q=0:p=ti+18000
970 m=ti+10
980 ifti<mthen980
990 input"[215]";i$
1000 q=q+1
1010 if q<>100 or ti>p then 1160
1020 print"[147]"
1030 print""
1040 print" $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$"
1050 print" $ $"
1060 print" $ your time is up!before i talk with $"
1070 print" $ $"
1080 print" $ you any longer,you have to pay the $"
1090 print" $ $"
1100 print" $ bill of $ 3999.90 + 21% vat! $"
1110 print" $ $"
1120 print" $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$":print""
1130 m=ti+300
1140 ifti<mthen1140
1150 goto2850
1160 i$=" "+i$+" "
1170 for l=1 to len(i$)
1180 if mid$(i$,l,1)="'" then i$=left$(i$,l-1)+right$(i$,len(i$)-l)
1190 next l
1200 ifi$=p$thenui$="[209]: please dont repeat yourself":printui$:print:goto970
1210 rem
1220 s=0
1230 for k=0 to n1
1240 if k=o goto 1270
1250 x$=i$:y$=k$(k):gosub 780
1260 if a<>0 then s=k:t=a:f$=k$(k):goto 1280
1270 next k
1280 if s>0 then k=s:l=t:goto 1320
1290 if x=7 then 1370
1300 k=n1:goto 1470
1310 rem
1320 c$=" "+right$(i$,len(i$)-len(f$)-l+1)
1330 for x=1 to n2/2
1340 for l=1 to len(c$)
1350 if l+ len(s$(x))>len(c$) then 1390
1360 if mid$(c$,l,len(s$(x)))<>s$(x) then 1390
1370 c$=left$(c$,l-1)+r$(x)+right$(c$,len(c$)-l-len(s$(x))+1)
1380 l=l+len(r$(x))
1390 ifx=7then1430
1400 if l+len(r$(x))>len(c$) then 1430
1410 if mid$(c$,l,len(r$(x)))<>r$(x) then 1430
1420 c$=left$(c$,l-1)+s$(x)+right$(c$,len(c$)-l-len(r$(x))+1)
1430 next l
1440 next x
1450 if mid$(c$,2,1)=" " then c$=right$(c$,len(c$)-1)
1460 rem antwort
1470 restore
1480 fori=1to32:readb:next
1490 print
1500 for x=1 to r(k):read f$:next x
1510 r(k)=r(k)+1
1520 if r(k)>n(k) then r(k)=s(k)
1530 x$=f$:y$="*":gosub 780
1540 if a=0 then print"[209]: "f$:print:p$=i$:goto 970
1550 ui$=left$(f$,a-1)+c$+right$(f$,len(f$)-a)
1560 print"[209]: "ui$:print
1570 goto 970
1580 data169,0,133,160,169,128,133,161,133,161,160,0,177,160,73,128,145,160,200
1590 data192,0,208,245,230,161,169,132,197,161,208,237,96
1600 rem antworten
1610 data "don't you believe that i can*"
1620 data "perhaps you would like to be able to*"
1630 data "you want me to be able to*"
1640 data "perhaps you don't want to*"
1650 data "do you want to be able to*"
1660 data "what makes you think i am*"
1670 data "does it please you to believe i am*"
1680 data "perhaps you would like to be*"
1690 data "do you sometimes wish you were*"
1700 data "don't you really*"
1710 data "why don't you*"
1720 data "do you wish to be able to*"
1730 data "does that trouble you?"
1740 data "tell me more about such feelings.
1750 [131] "do you often feel*"
1760 [131] "do you enjoy feeling*"
1770 [131] "do you really believe i don't *"
1780 [131] "perhaps in good time i will*"
1790 [131] "do you want me to*"
1800 [131] "do you think you should be able to*"
1810 [131] "why can't you*"
1820 [131] "why are you interested in whether or not i am*"
1830 [131] "would you prefer if i were not*"
1840 [131] "perhaps in your phantasies i am*"
1850 [131] "how do you know you can't*"
1860 [131] "have you tried?"
1870 [131] "perhaps you can now*"
1880 [131] "did you come to me because you are*"
1890 [131] "how long have you been*"
1900 [131] "do you believe it is normal to be*"
1910 [131] "do you enjoy being*"
1920 [131] "we were discussing you - not me!"
1930 [131] "oh, i*"
1940 [131] "you're not really talking about me, are you?"
1950 [131] "what would it mean to you if you got*"
1960 [131] "why do you want*"
1970 [131] "suppose you soon got*"
1980 [131] "what if you never got*"
1990 [131] "i sometimes also want*"
2000 [131] "why do you ask?"
2010 [131] "does that question interest you?"
2020 [131] "what answer would please you the most?"
2030 [131] "what do you think?"
2040 [131] "are such questions in your mind often?"
2050 [131] "what is that you really want to know?"
2060 [131] "have you asked anyone else?"
2070 [131] "have you asked such questions before?"
2080 [131] "what else comes to mind when you ask that?"
2090 [131] "names don't interest me."
2100 [131] "i don't care about names - please go on."
2110 [131] "is that the real reason?"
2120 [131] "don't any other reasons come to mind?"
2130 [131] "does that reason explain anything else?"
2140 [131] "what other reasons might there be?"
2150 [131] "please don't apologize!"
2160 [131] "apologies are not necessary."
2170 [131] "what feelings do you have when you apologize?"
2180 [131] "don't be so defensive!"
2190 [131] "what does that dream suggest to you?"
2200 [131] "do you dream often?"
2210 [131] "what persons appear in your dreams?"
2220 [131] "are you disturbed by your dreams?"
2230 [131] "how do you do ... please state your problem."
2240 [131] "you don't seem quite certain."
2250 [131] "why the uncertain tone?"
2260 [131] "can't you be more positive?"
2270 [131] "you aren't sure?"
2280 [131] "don't you know?"
2290 [131] "why no*"
2300 [131] "don't say no it's always so negative."
2310 [131] "why not?"
2320 [131] "are you sure?"
2330 [131] "why no?"
2340 [131] "why are you concerned about my*"
2350 [131] "what about your own*"
2360 [131] "can't you think of a specific example?"
2370 [131] "when?"
2380 [131] "what are you thinking of?"
2390 [131] "really always?"
2400 [131] "do you really think so?"
2410 [131] "but you are not sure you*"
2420 [131] "do you doubt you*"
2430 [131] "in what way?"
2440 [131] "what resamblence do you see?"
2450 [131] "what does the similarity suggest to you?"
2460 [131] "what other connections do you see?"
2470 [131] "could there really be some connections?"
2480 [131] "how?"
2490 [131] "i understand!"
2500 [131] "are you sure?"
2510 [131] "you seem quite positive."
2520 [131] "i see."
2530 [131] "why do you bring up the topic of friends?"
2540 [131] "do your friends worry you?"
2550 [131] "do your friends pick on you?"
2560 [131] "are you sure you have any friends?"
2570 [131] "do you impose on your friends?"
2580 [131] "perhaps your love for friends worries you."
2590 [131] "do computers worry you?"
2600 [131] "are you talking about me in particulary?"
2610 [131] "are you frightened by machines?"
2620 [131] "why do you mention computers?"
2630 [131] "what do you think machines have to do with your problem?"
2640 [131] "don't you think computers can help people?"
2650 [131] "what is it about machines that worries you?"
2660 [131] "i think we want to talk about you not about me!"
2670 [131] "what's about me?"
2680 [131] "why do you always bring up my name?"
2690 [131] "why do you have problems with money?"
2700 [131] "do you think money is every thing?"
2710 [131]"i say: money is nothing!"
2720 [131] "man!! love is only for idiots! why do you love*?"
2730 [131] "whom do you love?"
2740 [131] "if you want to speak about crazy german-teachers, not with me!!!"
2750 [131] "you seem to be quite agressive! aren't you?"
2760 [131] "why do you hate*?"
2770 [131] " you are right! i agree with you!"
2780 [131] "do you have any psychological problems?"
2790 [131] "oh! indeed?"
2800 [131] "i see."
2810 [131] "i'm not sure i understand you fully."
2820 [131] "come, come elucidate your thoughts."
2830 [131] "can you elaborate that?"
2840 [131] "that is quite interesting!"
2850 q[178]0
2860 [153]"load"
2870 [153]"****************************************"
2880 [153]""
2890 [153]" "
2900 [153]" "
2910 [153]" "
2920 [153]" "
2930 [153]" "
2940 [153]" "
2950 [153]" "
2960 [153]" "
2970 [153]" "
2980 [153]" "
2990 [153]" "
3000 [153]" "
3010 [153]" "
3020 [153]""
3030 [153]"****************************************"
3040 q[178]q[170]1:[139] q[178]10[167]3080
3050 m[178]ti[170]40
3060 [139]ti[179]m[167]3060
3070 [137]3040
3080 [153]"load"
3090 [128]