You are going to create a MadLib game! Use this resource if you haven’t played a MadLib in a while to get reacquainted with this thrilling adventure using parts of speech.
- Create a MadLib program that accepts input from the user and outputs a completed MadLib
- Use up to ten different parts of speech in order to fill in your MadLib
- Output should consist of a paragraph of output that has the user’s input substituted into the MadLib
Below is an example output from running through a MadLib exercise. Don’t forget, your code and MadLib should be unique to you!
Welcome to my MadLib program. Please enter in some information below:
name: Starr
adjective: huge
noun: tablecloth
adjective: dry
food (plural): tacos
noun (plural): packs
verb ending in -ed: ended
noun: jellyfish
HERE'S YOUR MADLIB.......
Come on over to Starr’s Pizza Parlor where you can enjoy your favorite huge-dish pizza`s.
You can try our famous tablecloth-lovers pizza,
or select from our list of dry toppings,
including delicious tacos, packs, and many more.
Our crusts are hand-ended and basted in jellyfish to make
them seem more Hand-made.
- Use comments to explain your code
- Reuse at least one word
- Ask for at least 1 number
- Explore Ruby's built in methods for String like
capitalize
,downcase
,upcase
, and utilize them accordingly