Advertisement
Guest User

Untitled

a guest
Aug 5th, 2012
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.65 KB | None | 0 0
  1. from sys import exit
  2. from random import randint
  3.  
  4. class Start(object):
  5.  
  6.     def __init__(self, start):
  7.         self.quips = [
  8.             "Ouch town population you!"
  9.             "Your absolute garbage!"
  10.             "A blind person would escape faster than you!"
  11.             "Hahahahahahahahahahahah you suck!"
  12.         ]
  13.         self.start = start
  14.     def play(self):
  15.         next_room_name = self.start
  16.        
  17.         while True:
  18.             print "\n----------"
  19.             room = getattr(self, next_room_name)
  20.             next_room_name = room()
  21.                        
  22.     def death(self):
  23.         print self.quips[randint(0, len(self.quips)-1)]
  24.         exit(1)
  25.  
  26.  
  27. class Rooms(object):
  28.  
  29.     def __init__(self, eleven, server, parking):
  30.         self.rooms = eleven, server, parking
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement