AI Project
Introduction to if, elif, and else
Read this article about artificial intelligence: http://www.washingtonpost.com/news/morning-mix/wp/2014/06/09/a-computer-just-passed-the-turing-test-in-landmark-trial/
Another machine that passed the Turing Test is cleverbot. There are a number of these bots online. However the online version is not as powerful as the one that passed the Turing Test. *Disclaimer: Only use a bot with parental consent because cleverbot learns from humans and may say something impolite or that can be construed as offensive. Basically, no one knows what it will say because its database keeps growing.*
These articles teach about Weak vs Strong AI.
Time to make you're own A.I.: Go to http://labs.codecademy.com/ or Python 2.7 IDLE.
Another machine that passed the Turing Test is cleverbot. There are a number of these bots online. However the online version is not as powerful as the one that passed the Turing Test. *Disclaimer: Only use a bot with parental consent because cleverbot learns from humans and may say something impolite or that can be construed as offensive. Basically, no one knows what it will say because its database keeps growing.*
These articles teach about Weak vs Strong AI.
Time to make you're own A.I.: Go to http://labs.codecademy.com/ or Python 2.7 IDLE.
Hint:
# Step 1 : Introduce the computer AI def name(): print "Let's introduce ourselves." print "My name is Eliza." global name name = raw_input ("What is your name?") print "It's great to meet you, " + name + "." # Step 2: Have an interaction about your interests. def movie(): print name + " I love movies." choice1 = raw_input ("What is your favorite movie?") print "I love " + choice1 + " too." # Step 3: Allow the computer to make decisions: def feeling(): print "How are you feeling today?" my_feeling = raw_input() if my_feeling.lower() == "good": print "That's good." elif my_feeling.lower() == "sad": print "I'm sorry to hear that." else: print "I don't understand." feeling() name() movie() feeling() |
Rubric:
Yours should have 4 functions, not 3. Yours should use if, elif, and else 3 times. DO NOT COPY TEACHER'S CODE Only use it as a reference. Choose different topics. |