Created
January 8, 2017 03:26
-
-
Save jorvis/9c83b1da66894a2056a1e05484bf422d to your computer and use it in GitHub Desktop.
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 python3 | |
""" | |
Kids do great playing Minecraft together but fight when deciding | |
in whose world to play? What mode? Difficulty level? | |
I give them 1 minute to work it out before I run this script | |
and let it pick instead. | |
""" | |
import random | |
world_pickers = ['Zane', 'Xander', 'Lily', 'Brax'] | |
difficulties = ['peaceful', 'easy', 'medium', 'hard'] | |
modes = ['survival', 'creative'] | |
mode = random.choice(modes) | |
difficulty = random.choice(difficulties) | |
world_picker = random.choice(world_pickers) | |
print("{0} gets to choose the world in {1} ({2}) mode".format(world_picker, mode, difficulty)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment