/Mad-Libs-Generator

The Mad Libs Generator is a console-based application, where users can input words to fill in the blanks of a story template, resulting in a unique and often humorous story.

Primary LanguagePython

Mad-Libs-Generator

The Mad Libs Generator is a Python-based console application that allows users to generate Mad Libs stories dynamically. Mad Libs is a phrasal template word game where one player prompts others for a list of words to substitute for blanks in a story.

How to Play

  1. Run the Python script (mad_libs.py).
  2. Choose a story template by entering the corresponding number.
  3. Enter words when prompted for different word types (adjective, noun, verb, adverb, place).
  4. Once all words are entered, the program will generate a story by filling in the blanks with your words.
  5. Read and enjoy your unique Mad Libs story.
  6. Optionally, choose to play again or exit the game.

File Structure

  • mad_libs.py: Python script containing the game logic.
  • README.md: This file, providing instructions and information about the game.

Development

  • This game was developed using Python, utilizing dictionaries, random module, and console I/O for user interaction.

How to Run

Ensure you have Python installed on your system. You can run the game by executing the mad_libs.py script in a Python environment.

python mad_libs.py