0% found this document useful (0 votes)
10 views7 pages

Madlibs

Mad Libs is a text-based game that creates humorous stories by replacing blank spaces with user-provided words. Players input various types of words, which are then stored and used to generate and display a completed story. The game also includes options for replaying and utilizes coding concepts such as input functions, variable assignment, and string formatting.

Uploaded by

ashtamia95
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views7 pages

Madlibs

Mad Libs is a text-based game that creates humorous stories by replacing blank spaces with user-provided words. Players input various types of words, which are then stored and used to generate and display a completed story. The game also includes options for replaying and utilizes coding concepts such as input functions, variable assignment, and string formatting.

Uploaded by

ashtamia95
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

MAD LIBS

OCTOBER2024
INTRODUCTION

THE MAD LIBS GAME IS A


SIMPLE TEXT-BASED GAME
THAT GENERATES A FUNNY
STORY BY REPLACING BLANK
SPACES WITH USER-INPUTTED
WORDS.
GAMEPLAY

1.The game prompts the user to input different


types of words (e.g., name, adjective, noun,
verb, etc.).
2. The game stores these input words.
3. The game generates a story by replacing blank
spaces with the input words.
4. The game displays the completed story.
CODE EXPLANATION

1. THE GAME STARTS WITH AN INTRODUCTION AND


INSTRUCTIONS.
2. THE GAME USES INPUT() FUNCTIONS TO COLLECT USER
INPUT FOR DIFFERENT WORD TYPES.
3. THE GAME STORES THE INPUT WORDS IN VARIABLES.
4. THE GAME USES F-STRINGS TO GENERATE THE STORY BY
REPLACING BLANK SPACES WITH THE INPUT WORDS.
5. THE GAME DISPLAYS THE COMPLETED STORY USING
PRINT().
6. THE GAME ASKS THE USER IF THEY WANT TO PLAY AGAIN.
1User input and output

3 String formatting (f-


strings)

2 Variable assignment
and usage
.

4 Conditional
statements (if-else)

KEY CONCEPT
REAL-WORLD
APPLICATIONS

ENTERTAINMENT
EDUCATION STORY TELLING
(GAMES,
(LANGUAGE SKILL
PUZZLES)
LEARNING,)
THANK YOU

You might also like