Have you heard of a Madlib? It’s a sort of game that was invented in 1953 by Leonard Sterrn and Roger Price. The basic idea is that the player is prompted for a series of words and phrases, without knowing how those will fit into a story. Then the player reads back the story, inserting their chosen words and phrases at key points, to hilarious results.
The original madlibs were presented in book form - we’re going to write a computer program madlib!
This program will be a little longer, and you’re going to have to design the story structure, so get ready to get creative!
Before we start, it’s a good idea at this point to make a brand new C# console application. Just follow the directions from the first lesson, and call your new project “Madlib”.
Here’s the basic structure of our program:
If you run the program, it will look something like this:
Alright - up until now, we’ve walked you through every step with these lessons. Now, it’s time for you to get creative and expand this ‘madlib’ program to make it your own.
You may want to test run your program frequently, in case you accidentally add any errors.