|
|
@ -30,11 +30,13 @@ verbs = spaceremover(verbs)
|
|
|
|
gamenames = spaceremover(gamenames)
|
|
|
|
gamenames = spaceremover(gamenames)
|
|
|
|
#new funtion quantifier
|
|
|
|
#new funtion quantifier
|
|
|
|
def quantifier (words):
|
|
|
|
def quantifier (words):
|
|
|
|
amount = random.randint(-5,7)
|
|
|
|
amount = random.randint(0,7)
|
|
|
|
word = random.choice(words)
|
|
|
|
word = random.choice(words)
|
|
|
|
word = str(amount) + " " + word
|
|
|
|
word = str(amount) + " " + word
|
|
|
|
if amount == 1 or amount == -1:
|
|
|
|
if amount == 1 or amount == -1:
|
|
|
|
return word
|
|
|
|
return word
|
|
|
|
|
|
|
|
if amount == 0:
|
|
|
|
|
|
|
|
word = word.replace("0 ","no ")
|
|
|
|
if word[-1] =="y":
|
|
|
|
if word[-1] =="y":
|
|
|
|
word = word[0:-1]
|
|
|
|
word = word[0:-1]
|
|
|
|
#word = word.replace("y","")
|
|
|
|
#word = word.replace("y","")
|
|
|
@ -50,7 +52,7 @@ def quantifier (words):
|
|
|
|
print(" " *10+"How to play " + random.choice(gamenames))
|
|
|
|
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(random.randrange(1,275)):
|
|
|
|
print(" " *10+"Rule " + str(i+1) + ": "+ random.choice(verbs) + " " + quantifier (objects))
|
|
|
|
print(" " *10+"Rule " + str(i+1) + ": "+ random.choice(verbs) + " " + quantifier (objects))
|
|
|
|
|
|
|
|
|
|
|
|
print("""
|
|
|
|
print("""
|
|
|
|