Skip to content

Oxlotus/PyMadLibs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

PyMadLibs

A (dynamic) Python implementation of the classic and fun Mad Libs game.

Creating Custom Stories

The dynamic nature of this application allows the user to create their own stories. If you wish to add your own story, a key,value pair must be added to the dictionary in the code and the text file must exist in the 'stories' directory.

In the content of the file, I use what I call 'cues' to trigger the application's behavior of prompting the user for parts of speech. All cues are encased in a set of curly brackets {}. (Spaces are NOT supported!)

Examples

In the first example below, the application wouldn't prompt the user to enter anything and would print back the exact string from the text file.)

The cat jumped over the {big noun}.

In the below example, the application would prompt the user to enter a noun.)

The cat jumped over the {noun}.

About

A (dynamic) Python implementation of the classic and fun Mad Libs game.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages