Skip to content

Instantly share code, notes, and snippets.

Created February 16, 2013 20:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/590c348f96879d7000e2 to your computer and use it in GitHub Desktop.
Save anonymous/590c348f96879d7000e2 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
# License: WTFPL
import random
show_names = ("Game Grumps", "Gample Gust", "Grep", "Gash Garst",
"Gurp Gurp Gurp Gurp", "Squidward", "Batman", "Grumble Dumps",
"Groomp Croomp", "Gargarsh", "Grusput", "Goof Troop")
line_beginnings = ("OH IT'S A", "ROLLING AROUND AT THE SPEED OF",
"POPPY BROTHERS JUNIOR", "WHAT IS THIS?", "Look at this",
"Look at that dang-ass", "Real talk?", "I legitimately think",
"I hate when", "Pause balls by going upstairs,")
line_endings = ("IT'S NO USE", "BARRY, PUT THAT IN", "POPPY BROTHERS SENIOR",
"WE ALWAYS RESET TOGETHER", "GREATGREATGREAT", "WHAT IS MY LIFE?",
"Pumbloom", "dang", "game feel", "Silver", "*Jon coughs*", "[JON NO]",
"Chiz Peetza")
def generate_grumps(length=None):
yield "Welcome back to {0}!".format(random.choice(show_names))
if length is None:
length = random.randint(5, 30)
for _ in range(length):
beginning = random.choice(line_beginnings)
ending = random.choice(line_endings)
yield "{0} {1}".format(beginning, ending.upper() if beginning.upper() == beginning else ending)
yield "Next time on {0}!".format(random.choice(show_names))
if __name__ == '__main__':
for item in generate_grumps():
print(item)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment