swdcsalliance by Changing Expectations

Students with Disabilities in Computer Science Research Alliance

Unit 4 - Bots - Chapter 2 Implement your bot

Introduction:

“Mad Libs is a phrasal template word game where one player prompts others for a list of words to substitute for blanks in a story, before reading the – often comical or nonsensical – story aloud.”

Stern and Price’s original Mad Libs book gives the following sentence as an example:

Mad Libs Example

Source: Wikipedia

Mad Libs are played by two players. The first player asks the second to provide the words to fill in each of the blanks. After writing them all down, the story is read aloud. The second player does NOT see the story till after they provide all the answers to the first players questions.

Using the above example the conversation would flow something like this. However in our game the bot will be asking the questions and then telling the story and the user will be providing the answers to the questions.

Lets see an example of a bot that does this!

Hosted on GitHub Pages — Generated on Thu, 08 Aug 2019 14:38:46 +0000