A fun Python console game that randomly generates silly stories based on user input. Built using simple logic, functions, and string formatting.
- 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
- 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.
- Python 3.x
- No external libraries required - uses standard Python modules
-
Make sure you have Python 3.x installed.
-
Run the script in your terminal:
python madlib_generator.py
Follow the prompts to enter words and enjoy your silly stories!
🎲 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):
- 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
Crafted with Python magic by Toshaksha - Have fun creating your own wild tales!