|
|
|
@ -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))
|
|
|
|
|
|
|
|
|
|