Created
April 5, 2018 16:47
-
-
Save coxevan/4aa38c947b14ef0b4d2ae70b58eb30e6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#Establish a bit of chaos | |
import random | |
#Establish a bit of order | |
LIGHT_GODS = True | |
DARK_GODS = False | |
DIVINE_MAP = {True: 'Light', False: 'Dark'} | |
CELESTIAL_ODDS = (-20, 20) | |
COMMANDMENTS_LIST = [ 'Praise be to the {divine_order} Gods, begin your quest on frame {offering}.', | |
'For the {divine_order} Gods looked down and saw the animation, and it started on frame {offering}. It was okay.' ] | |
#Roll dem dices | |
tribute_amount = random.randint(CELESTIAL_ODDS[0], CELESTIAL_ODDS[-1]) | |
tribute_direction = tribute_amount >= 0 | |
#Let'em know | |
print COMMANDMENTS_LIST[random.randint(0, len(COMMANDMENTS_LIST)-1)].format( divine_order=DIVINE_MAP[tribute_direction], offering=tribute_amount) | |
#Hmmm...I should get back to work. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment