16-03-2011 Danny Fabien Mirjam: Difference between revisions

From XPUB & Lens-Based wiki
(Created page with "=== Game Labyrinth / Lexicon === Mirjam, Danny, Fabien TO DO: - make time machine to go back in time and have extra time to work - write intro dialog Links:<br> - [http://thc...")
 
No edit summary
Line 40: Line 40:
<source lang="python">
<source lang="python">


import html5lib, lxml, urllib2
url = "http://www.facebook.com/terms.php"
htmlsource = urllib2.urlopen(url)
htmlparser = html5lib.HTMLParser(tree=html5lib.treebuilders.getTreeBuilder("lxml"), namespaceHTMLElements=False)
page = htmlparser.parse(htmlsource)
p = page.xpath("/html/body/div[3]/div[3]/div/div/div/div/ol/li[1]")
print "".join(p[0].itertext()).strip()


</source>
</source>

Revision as of 15:44, 16 March 2011

Game Labyrinth / Lexicon

Mirjam, Danny, Fabien


TO DO:

- make time machine to go back in time and have extra time to work - write intro dialog

Links:
- play zork online
- python textbased adventure


Notes:
- you are in a fantasy world. you are lost in the terms of service of Facebook and you are trying to navigate through it.
- you are presented with the index of the TOS of Facebook, which corresponds to different rooms. - Quest: you've subscribed you a website, your photo's have been taken down and you're looking in the TOS to see if that was legitimate.
-- Stuff that can happen:
--- you've read 3 paragraphs and now you're too tired to read any further.
--- after a while they change the TOS again.
--- if you type 'look', you can get a reply like 'by user we mean blablabla'
--- n, s, e and w can become scroll up and down. every time a small excerpt of the TOS is presented, you feel totally lost in the documents.
--- monsters in a room that steal data (you've been tagged, you want to take your tag down but you can't) you can tag with a dagger.
--- angry email from your friend 'where are the photo's from the party??'
--- you find a note with a lawyers number on it. when you call with your cellphone you find out you need 50 gold to hire the lawyer to get your photo back. (this is a wildcard, when you call the lawyer he fixes the problems for you by going through the TOS for you. Otherwise you have to play the game/go through the TOS yourself).

How to make money?:
Expansion could be: you can ascii draw paintings and sell them on Etsy >> another TOS!
Objects you find, you can sell them on Ebay >> another TOS

Levels :
First floor :
Room1 Privacy, Room2 Sharing Content and Information, Room3 Safety, Room4 Registration and Account Security.
Second floor



import html5lib, lxml, urllib2

url = "http://www.facebook.com/terms.php"
 
htmlsource = urllib2.urlopen(url)
htmlparser = html5lib.HTMLParser(tree=html5lib.treebuilders.getTreeBuilder("lxml"), namespaceHTMLElements=False)
page = htmlparser.parse(htmlsource)
p = page.xpath("/html/body/div[3]/div[3]/div/div/div/div/ol/li[1]")

print "".join(p[0].itertext()).strip()