adding tools

master
Boyana 2 years ago
parent 98c3b21c40
commit 578090bf72

@ -1,6 +1,7 @@
#This is a script that writes rules and instructions
#First it sets variables
import random
import urllib.request
#games = ["backgammon", "pokemon", "war"]
#Pull the content from games.txt
#Open games.txt file
@ -19,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")
#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")
def spaceremover (defspace):
for object in defspace:
if object == "":
@ -53,7 +57,7 @@ print(" " *10+"How to play " + random.choice(gamenames))
print("~*"*30)
#Then it loops through instructions
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) + " with a " + random.choice(tools))
print("""
wWWWw wWWWw

@ -16,3 +16,4 @@ soil
parasite
page
sound
hour

@ -0,0 +1,17 @@
your hand
someone else's hand
someone
drawing
collage
poem
statement
song
casette
speech
gesture
python script
html script
card
movie
story
tale
Loading…
Cancel
Save