I found programming Eliza very hard. I could not figure out how to get a give the human answers. I understood that you are supposed to put print("Eliza's response") but that was the only thing I could figure out what to do. It said something about input("human response") but every time I tried that and I pressed the run button, nothing would show up. Another thing I didn't understand was how to make a personal response, by using names or such. It told me to use +name+ inside the the Eliza response but it would just come straight out as +name+.
One thing that I did understand was how to get two different responses based on a human answer. Just like the games in Hour of Code, you can give the computer two options to respond to one answer. For example if Eliza said, print("How was school today?") the next response could be if ("good") say ("that's good!") or else say ("how come?"). This makes her seem more realistic and less frustrating to talk to. Programming Eliza was difficult for me but once you get the hang of it, it is very interesting program to use.
No comments:
Post a Comment