Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

🧠 Mad Libs Generator 🎲

A fun Python console game that randomly generates silly stories based on user input. Built using simple logic, functions, and string formatting.


✨ Features

  • 10 creative story templates
  • User input for nouns, verbs, adjectives, and more
  • Randomized story selection for replayability
  • Replay loop with input validation
  • Fun emojis to make the game engaging

⚙️ How It Works

  • When the script starts, the user is greeted and a random story template (from 10 options) is selected.
  • The user is prompted to enter various words (nouns, verbs, adjectives).
  • The inputs are inserted into the story using f-strings.
  • After the story is shown, the user can choose to play again.
  • Uses random.choice() to keep gameplay different each time.

🧰 Requirements

  • Python 3.x
  • No external libraries required - uses standard Python modules

▶️ How to Run

  1. Make sure you have Python 3.x installed.

  2. Run the script in your terminal:

    python madlib_generator.py

Follow the prompts to enter words and enjoy your silly stories!


🎮 Sample Gameplay

🎲 Welcome to the Random Mad Lib Generator!
Ready to experience the madness!!

Enter a place: park
Enter an adjective: scary
Enter an animal: bear
Enter a verb ending with -ing: running
Enter an emotion: scared
Enter a past tense verb: ran

🎉 Here's your story:

One day, I decided to go to the park. Suddenly, I saw a scary bear running towards me. I was so scared that I ran away!

🎉 Want to play again? (y/n):

📝 What I Learned

  • Using functions to organize code
  • String formatting with f-strings
  • Collecting and validating user input
  • Random selection from a list of functions
  • Building a fun interactive CLI game

Credits

Crafted with Python magic by Toshaksha - Have fun creating your own wild tales!