diff --git a/script.py b/script.py index 578a2c1..2c5c0c3 100644 --- a/script.py +++ b/script.py @@ -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)) + diff --git a/text/object.txt b/text/object.txt index dd2bea7..ed2130b 100644 --- a/text/object.txt +++ b/text/object.txt @@ -8,4 +8,6 @@ nice backgammon lamp chair -flower \ No newline at end of file +flower +library +community