-
-
Save anonymous/590c348f96879d7000e2 to your computer and use it in GitHub Desktop.
Game Grumps line generating script. Insipired by http://www.reddit.com/r/gamegrumps/comments/18nbug/i_made_a_java_program_that_randomly_generates/ .
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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