Skip to content

Instantly share code, notes, and snippets.

@NiklasRosenstein
Created April 12, 2017 11:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save NiklasRosenstein/8340da35ce816e9f44dea468a653e230 to your computer and use it in GitHub Desktop.
Save NiklasRosenstein/8340da35ce816e9f44dea468a653e230 to your computer and use it in GitHub Desktop.
#!/usr/local/bin/nodepy
choices = {
'S': range(1, 10),
'L': range(1, 5),
'V': range(1, 5),
'H': range(1, 4),
'R': range(1, 4),
'E': range(1, 4),
'C': range(1, 9),
'G': range(1, 3),
'N': range(1, 6),
'D': range(1, 3)
}
import random
print('\nChoose between one of the following three dishes:')
print()
print(' /^^^^^\\')
for __ in range(3):
m = random.choice(list(choices))
print(' |', m, random.choice(choices[m]), '|')
print(' \\_____/')
print()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment