master
suzan 2 years ago
parent 342626b281
commit def3cb2377

@ -28,8 +28,10 @@ def spaceremover (defspace):
objects = spaceremover(objects)
verbs = spaceremover(verbs)
gamenames = spaceremover(gamenames)
#new funtion quantifier
def quantifier (words):
word = random.choice(words)
return word + "s"
#print(type(objects))
#print(objects)
@ -41,4 +43,5 @@ print(" " *10+"How to play " + random.choice(gamenames))
print("~*"*30)
#Then it loops through instructions
for i in range(6):
print(" " *10+"Rule " + str(i+1) + ": "+ random.choice(verbs) + " a " + random.choice(objects))
print(" " *10+"Rule " + str(i+1) + ": "+ random.choice(verbs) + " a " + quantifier (objects))

@ -8,4 +8,6 @@ nice
backgammon
lamp
chair
flower
flower
library
community

Loading…
Cancel
Save