Skip to content

Latest commit

 

History

History
 
 

MADLIBS Game

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

MADLIBS

Short description of package/script

  • Its a super fun game basically based on filling the blanks of an incomplete story which is not known to you and revealed in its final form after you give out the words.

Workflow of the Project

You simply need an IDE and python installed in your local system.
-Open the editor and define a function called madlibs inside which

*create a story templates that is incomplete but laid out with blanks at appropriate places which fills in for noun, adjective, verb etc.
*ask these blank contents from the user giving the description (e.g enter a noun )

-Create as many different templates as you like in different files just like this.

-Then create the main file and use import to link al these templates to the main file.

-Then use random to randomise the choosing of the story each time.

-And call out the function madlib from the chosen story, this would roll out the output of that story in the output terminal

Setup instructions

Just download the entire MADLIBS_Game folder into your local system and open it in an IDE (of your choice)
and run this file madlibs simple as that!
but make sure you have python instlled on your system!

Detailed explanation of script, if needed

Just run the madlibs (which is inside the MADLIBS_Game folder) after you have downloaded the entire folder.
You will be asked to enter certain words, enter them based on the description provided (noun/adjjective/verb..etc)
after you have entered all the words asked, hit enter and the screen would display the completed story with your words filled in the spaces!
The story templates i prepared are mentioned bellow but DISCLAIMER: Don't open them now otherwise you will miss the fun of the surprise appearance of the story after you entered the words !!
Avengers Template
Harry Potter Template
F.r.i.e.n.d.s
Ratatouille

Images

The output images of each of the template are in the Image folder
You will get one of them on your output screen depending on the random choice the code picks for you once you run it!

Author(s)

Ashi Dubey