Interactive Stories (Mad Glibs)
In this assignment you will have the opportunity to create a program that uses the elements from this module. One way to do this is through the creation of a computer based Mad Lib.
I bet most of you have played with Mad Libs before. You ask a player to provide you with several parts of speech (noun, verb, adjective, etc.) and then their responses are placed into a partially existing story - normally with wacky or crazy results.
For examples you can check out the official Mad Libs website at (www.madlibs.com). But for this assignment I would like you to create an interactive story/mad lib based on a popular nursery rhyme.
Hey Diddle Diddle. The (animal1) and the fiddle. The (animal2) (past-tense verb) over the moon. The (adjective) (animal3) (past-tense verb) to see such a sight. And the (noun) ran away with the spoon.
When the green flag is pressed your program should:
- ask the user for at least the seven inputs mentioned in the story above
- “tell” the story/mad lib based on the inputs provided by the user
- adapt at least one visual element of the story based on the user’s input. This would be done by including at least one conditional statement that examines at what they gave you and changes based on that input. Probably the easiest way to do this is to ask the user to pick from a small set of values for one of the choices (give them three animal choices for the creature that ends up going over the moon) but there are other ways to do this as well. GET CREATIVE!
- When you are done you should share this story to the proper gallery:
- Work in small steps. Build the story up one piece at a time. This process – called incremental development – is what we were doing in class when we built the Knock Knock and Jack and Jill stories up one element at a time.