yes it does.
prompts:
e"hi. i'm going to be your worst nightmare"
e"i think you're full of it."
e"my mother told me so."
e"no. you tell me about yours."
e"you're obviously retarded."
e"damn your eyes!"
e"understand a kick in the pants?"
e"i always ignore idiots."
e"i am afraid of dinosaurs"
responses:
"have you always been going to be my worst nightmare?
"why do you think i am full of it?"
"tell me about your mother."
"please don't be so personal."
"can you elaborate on that?"
"can you elaborate on that?"
"that's very interesting. do go on."
"why do you always ignore idiots?"
"have you always been afraid of dinosaurs?"
a few observations:
the 'i' function gives you prompt-and-respond in the console by
call 'e' until the user gives no prompt:
i:{while[count r:read0 0;-1"? ",e r;]}
the 'P' function maps first- and second-person:
P:{(y,x,z)(x,y)?z}.`$(("you";"your";"yourself";"i'm";"i am");("i";"my";"myself";"you are";"you're"))
instead of rotating multiple-responses, the k version picks a
response randomly from the set. this is less predictable than
rotation.
but i'm not surprised that the ruby version is so small. it's
a nice language, and i like the enthusiasm of its practitioners.
"William James"
yahoo.com> wrote in message news:a404c407-ac00-4665-9f49-6bca822c1239@v3g2000hsc.googlegroups.com...