Mad Libs Mania™ by Daisy Cisneros and Melina Perraut
How to play Mad Libs
Mad Libs is a game involving stories containing blank spaces where words are left out. It can be played individually or with as many people as you'd like. Each blank space is a part of speech, and it is the player's job to fill out those spaces by providing the appropriate parts of speech as prompted. Please note that unless specified otherwise, the user(s) should input parts of speech that are singular and in present tense. The fun part is that the player doesn't know what the story is or what the sentences will look like until the very end, when the complete story is revealed. At the end of a round of Mad Libs, players will discover that they've written a story that is fantastic, screamingly funny, shocking, crazy, or just plain silly!
Quick review of parts of speech
- An adjective describes something or somebody (examples: lumpy, soft, short)
- A noun is the name of a person, place, or thing (examples: computer, umbrella, nose)
- A verb is an action word (examples: run, pitch, jump) without an -ing ending
- An adverb tells how something is done. It modifies a verb and usually ends in "ly" (examples: modestly, greedily, carefully)
- When we ask for specific words, like a color or (piece of) furniture, we mean a word that is one of those things (examples: purple, table)
How to run our program
Step 1. Open the terminal
Step 2. Paste this command into the terminal and press enter: javac MadLibsMania.java && java MadLibsMania
Step 3. Type in the parts of speech as requested by the terminal, pressing enter after each word.
Step 4. Enjoy your Mad Lib! 😜🤗
Step 5. To generate another Mad Lib, type this command into the terminal: control + C
Step 6. Repeat steps 2-5 as many times as desired.
1. What did you learn during this project?
We learned how to implement our own CS project without given specifications from start to finish. This involved collaborating with another person to code a full-length project together, which was a new experience for the both of us. We learned how to use Ed workspace, and created our own version control flow by playing around with test workspaces. We learned more about the terminal, server, HTML, CSS, and javascript. We became agile with our personal deadlines and adapted to blockers in our progress.
2. What did you enjoy during this project?
We enjoyed creating this fun project, and the enjoyable result that hopefully makes others laugh. It was very fun to collaborate together and learn more about each other throughout the project! Gaining exposure to web app development, and the tools to learn more HTML, CSS, javascript on our own time was awesome.
3. What did you find challenging or frustrating during this project?
Since the success of our program rested on a combination of generative recursion and scanner inputs printing to the console as expected, it was challenging to debug! Figuring out something as simple as: "Where did that extra space come from?" took longer than we would have expected. It was both challenging and frustrating to learn the terminal and server semantics that our web app might have had. This involved extensive self-learning and googling for HTML, CSS, and javascript concepts from scratch. Lastly, we invested so much energy into attempting to convert our console-based program into a web app, so it was a bummer to finally learn that it was too complicated to be feasible given our timeline.
4. What did you find particularly helpful for your learning during this project?
The TA's during IPL were super helpful! They pointed us towards the most feasible endgoal for our project. Being open and able to learn from each other and build off one another's ideas was especially helpful for our project's success. Lastly, w3schools.com was an instrumental resource for learning about HTML, CSS, and javascript.
Built With
- ed
- java

Log in or sign up for Devpost to join the conversation.