diff --git a/script.py b/script.py index 3bd32fb..81f3aea 100644 --- a/script.py +++ b/script.py @@ -20,6 +20,9 @@ verbs = open("text/verbs.txt").read().split("\n") #Read the objects list from the objects.txt file #Make a objects list objects = open("text/object.txt").read().split("\n") +spaces = open("text/spaces.txt").read().split("\n") +themes = open("text/themes.txt").read().split("\n") +introductions = open("text/introductions.txt").read().split("\n") #Waiting to be fixed <<<< #tools = urllib.request.urlopen("http://pad.xpub.nl/p/SI19-prototyping-7-tools/export/txt").read().split("\n") tools = open("text/tools.txt").read().split("\n") @@ -30,8 +33,12 @@ def spaceremover (defspace): return defspace objects = spaceremover(objects) +tools = spaceremover(tools) verbs = spaceremover(verbs) gamenames = spaceremover(gamenames) +themes = spaceremover(themes) +spaces = spaceremover(spaces) +introductions = spaceremover(introductions) #new funtion quantifier def quantifier (words): amount = random.randint(0,7) @@ -53,11 +60,13 @@ def quantifier (words): #verb = ["choose", "pick", "give", "burn", "cut"] #Then it writes a title -print(" " *10+"How to play " + random.choice(gamenames)) -print("~*"*30) +print("~*"*60) +print("\n" + " " *10+"How to play " + random.choice(gamenames)+"\n") +print(random.choice(introductions)) +print("\n" + "~*"*60 +"\n") #Then it loops through instructions -for i in range(random.randrange(1,24)): - print(" " *10+"Rule " + f"{i+1:02}" + ": "+ random.choice(verbs) + " " + quantifier (objects) + " with " + random.choice(tools)) +for i in range(random.randrange(5,10)): + print("Action " + str(random.randrange(100,1000)) + ": "+ random.choice(verbs) + " " + quantifier (objects) + " with " + random.choice(tools) + " from the " + random.choice(themes) + " section to " + random.choice(spaces)) #f"{a:02}" print(""" wWWWw wWWWw diff --git a/text/introductions.txt b/text/introductions.txt new file mode 100644 index 0000000..940227d --- /dev/null +++ b/text/introductions.txt @@ -0,0 +1,5 @@ +please be mindful of the space. One round of this game is 15 minutes. Lets try this out! Feel free to make new definitions for the terms and add it on the box at the entrance when you leave so the deck can grow infinitely. +ORDER: Pick one (or more) of these actions to carry out with your team in the library today. Carry out the action(s) in no more than fifteen minutes. Please use your common sense and be mindful of your comrades :) ... if you're having fun you're on the right track, you're on the right track if you're having fun. +say something about the book limit (max 5) they can carry with them at the end of the night +welcome, librarian :) these actions are made of permutations. they include verbs, objects, themes, spaces and tools. these are selected at random by a script +if you're having fun you're on the right track, you're on the right track if you're having fun. Please pick one or more of these actions to carry out with your team in the library today. Try to carry out the action in no more than fifteen minutes. Please be mindful of the other people in the space and try to follow the guidelines of the library. diff --git a/text/object.txt b/text/object.txt index 267aaf4..1c0f39d 100644 --- a/text/object.txt +++ b/text/object.txt @@ -1,19 +1,40 @@ teammate card flower -library community +friend +stranger +visitor +customer +collector zine book -artifact +artefact tree jar -enzyme +painting +poster +leaflet +magazine +chair +bookend +board +piano +cup +door paper notebook archive -soil -parasite page sound -hour \ No newline at end of file +smell +word +text +letter +number +feeling +headline +paragraph +date +lover +crush diff --git a/text/spaces.txt b/text/spaces.txt new file mode 100644 index 0000000..cb6afc0 --- /dev/null +++ b/text/spaces.txt @@ -0,0 +1,17 @@ +long table inside +kitchen +piano +long bench in the entrance +little room at the very very very end +education room +carpet area +conversation couch +blue bookshelf +middle stairs +revolving bookcase +colour coded part +book displays +round table +magazine area/rack +bathroom +playground diff --git a/text/themes.txt b/text/themes.txt new file mode 100644 index 0000000..b4fdf0e --- /dev/null +++ b/text/themes.txt @@ -0,0 +1,29 @@ +crime +international +theatre +photography +music +travel +children +philosophy +architecture +art +wooden rack inside door +window display +politics +poetry +language +maps +non-fiction +biography +chick lit +feminist literature +punk +wellbeing +popular +heavy +dangerous +queer +unknown +current events +humour diff --git a/text/tools.txt b/text/tools.txt index 887002c..485b2a1 100644 --- a/text/tools.txt +++ b/text/tools.txt @@ -2,18 +2,23 @@ your hand someone else's hand someone a drawing -a collage a poem a statement a song -a casette a speech -a gest - -This is the right way for the file to beure -a python script -a html script +a gesture a card a movie a story a tale +a pen +a clock +paper +a list +a joke +a riddle +a map +a sketch +your opposite hand +your eyes closed +out words