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