Skip to content

Instantly share code, notes, and snippets.

@jorvis
Created January 8, 2017 03:26
Show Gist options
  • Save jorvis/9c83b1da66894a2056a1e05484bf422d to your computer and use it in GitHub Desktop.
Save jorvis/9c83b1da66894a2056a1e05484bf422d to your computer and use it in GitHub Desktop.
#!/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