Turing Test
I also researched about the Turing test. The Turing test was made by Alan Turning in
1950. "The Turing test is a test of a machine's ability to exhibit intelligent behaviour
equivalent to, or indistinguishable from, that of a human." Alan Turing asked himself the
question, could computers think? The Imitation game was a game where which a human being
and a computer would be interrogated under conditions where the interrogator would not know
which was which. Then Turing thought if the interrogator could not tell which one was a
computer and which one was a human by asking questions, then a computer is intelligent. Now
the imitation game is called the Turing test for intelligence.
Chatbot
We used Python to make a Chatbot. It would ask you do you have a question. Then if
you say yes, it would then say what is your question. Then once you type your question, it
would respond. It picks a random response out of the responses I typed. It started out as
only being able to say one response back. Then it was able to pick randomly from a list of
responses.
Then the next day I made the chatbot search for certain words in your question and
write a certain response based on the words. For example if you typed the word definition in
your question, the response would be use a dictionary. So this way the response is not
completly random. But if you did not type any of those certain words in your question it
would just pick a random response out of a list of responses. Also I was able to make it
speak.
Factbot
I made a Factbot with Python on Wednesday. The first thing I did was make an app ID so
I would be able to use WolframAlpha.com. The factbot would ask if you have a question. If
you say yes, it would then ask what is your question. Then once you type in your question,
it would search the web to an answer to your question. The fact bot would also speak its
responses because I downloaded and imported steel.
This is the code I made for the Factbot:
These are the questions I asked the Factbot:
History of AI
I researched about the history of artificial intelligence. I found out that AI started
out as a myth. In 1951 the first working AI programs were written. Then in 1952 Arthur
Samuel made the first game-playing program for checkers. In 1955 he made a version that
learned how to play checkers. In 1997 a machine called Deep Blue won a chess tournament
against world champion, Garry Kasparov. Many more things were developed throughout history.
For example in 2009, Google built a self driving car.
Deep Blue
-Norbert Wiener was an American mathematician and philosopher. He thought that
"Intelligence is a collection of feedback loops."
- AI Winter → a period of reduced funding and interest in artificial intelligence
research.
The Smartest Machine on Earth
On Wednesday we watched a video about a computer who beat the champions of Jeopardy. The computer was named Watson and it took many years to finish. The computer was able to learn from the mistakes that it made.
Blade Runner
On Thursday we watched a movie called Blade Runner. It was about robots who are
called replicants and they are indistinguishable from humans. The humans ask questions to
try to see if the person is a replicant or not. It does not work sometimes because the
replicants have learned how to have emotions. The replicants are banned from Earth but some
return. They returned because they are only programmed to live four years so they returned
to try to live longer. Blade runners hunt down the replicants and retire them. One question
I thought of after watching the movie is in the future are robots going to be able to learn
how to have emotions.
Rock Paper Scissors
On Monday I made Rock, Paper, Scissors with Python. The first thing I did was import
random. Then it would say do you want to play Rock Paper Scissors. If you type, y, it tells
you to type r, p, or s. The computer would pick a random one and print it. After that it
would print win, loose, or draw. Lastly it would ask you if you want to play again. If you
type y, it would start all over. If you type N, it would end. I learned how to make the
computer pick a random choice out of a list of options.
Here is the code that I made:
Hangman
On Monday I started making a hangman game on Python. On Monday all I did was create the hangman pictures
On Tuesday, I finished my Hangman game. I went through a tutorial to create it. The
first step to creating the code was to create the variables. Also I used the random.choice
function to pick a random word from the list of words. After I made all the variables I created the main
loop. The loop continues until the player's guesses are up or until they guessed the word.
The next step was to get the player's guess. If the player already guessed the letter, it would
tell them to guess a new letter. If the guess is valid it adds it to the list of used letters.
After that I made code to check the guess. If the letter they guessed is in the word it puts
the letter in the blank. If the guess is not in the word they have one less guess and it
prints out a stick figure based on how many guesses they have left. Lastly if they used all
the guesses or guessed the word, the game ends. One of the things I learned during this
project is if a word is in all capital letters, the word is a constant.
The next thing we did was learn how to import the urllib module so that we do not have
to type a list of words.
Hangman Player
On Wednesday, I used Python to make a Hangman Player that would play Hangman. It would pick a
random letter and guess it.
It did not work very well since it had a limited number of guesses and it was just picking random letters.
Then I had it guess the most frequent used letters first. Lastly we were supposed to
get a list of words and the computer would get rid of words on the list as it guessed wrong. But
when I was finished it was not working correctly because I could not get it to get rid of words
on the list.
Two Player Tic Tac Toe
On Wednesday, I started making a Tic Tac Toe game in Python. The first step was to create the Tic
Tac Toe board. Then in each space of the board, I put a box number. So that the player
is able to choose which space to put the X. So far the player is able to choose a box and put a X
in it.
On Thursday, I finished making 2 player Tic Tac Toe. One thing I learned from making this game
is if something is a function, you do not print it, you return it. In the game the player who is X
would go first. Then both players keep taking turns until one of them get three in a row, then the
program ends.
Here is my code:
One Player Tic Tac Toe
On Thursday, I started to create a 1 player Tic Tac Toe game in Python. Making a one player
Tic Tac Toe game is a lot more difficult than a 2 player game because the computer player has
to have Artificial intelligence. So far I started to define some of the variables.
Here is my code so far:
On Friday, I worked on my 1 player Tic Tac Toe game. When I finished writing the code, I got a
lot of error messages. I was able to figure out some of the error messages but some I was not able
to fix. At the end, my code did not work correctly. It was able to print out the introduction,
and ask if the player wanted to go first or second.
The biggest challenge while making this game was programming the computer's moves.