Skip to content

Instantly share code, notes, and snippets.

@coxevan
Created April 5, 2018 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coxevan/4aa38c947b14ef0b4d2ae70b58eb30e6 to your computer and use it in GitHub Desktop.
Save coxevan/4aa38c947b14ef0b4d2ae70b58eb30e6 to your computer and use it in GitHub Desktop.
#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