Intelligent Scratch Programs

posted by: Ms. Martin 5 January 2011 No Comment

We’ve been discussing the applications and impact of artificial intelligence but how are intelligent agents actually created?  To find out a little bit more, you will create basic artificial intelligence in Scratch.  Pick any one of these project options to work on Thursday and Friday:

Virtual Pet

You will create a virtual pet that reacts to its environment, interacts with the user and has needs.  For example, your pet might get hungry and ask for food.  It might need love or litter cleaning.

Here is a screenshot of a (too simple) pet that gets hungry, can be fed, and can hold conversations:

Your pet should:

  • Express at least two emotions (hunger, fear, tiredness, need to play, etc)
  • Be able to have a short conversation with its user (how are you, what’s your name, etc)
  • Involve an element of randomness
  • Change its state over time (become tired, become hungry)

How can you give your pet personality?  How can you cause the user to get attached to your pet and want to interact with it more?

Pong AI

Take out your game of pong and add a computer player.  Remember, playing against an opponent that always wins is not fun.  Can you make the computer player easy to beat at first and get harder and harder?

Guess My Number

Your program should ask the user to think of a number and then try to guess it.  Your program should show intelligence by trying to guess the number in the least number of tries.  Try coming up with a good algorithm to do this and ask Ms. Martin if you are getting stuck!

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 1.00 out of 5)
Loading ... Loading ...

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>