Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (21 sloc) 728 Bytes
import random
from randevents import locations_list, run_choices
# The kitty
class cat(object):
def __init__(self): = 'Kitty'
# Randomly place the kitty in one of the rooms
l = len(locations_list) - 1
self.location = locations_list[random.randint(1,l)]
def reveal(self):
print '%s ran to the %s' % (, self.location)
def run(self):
choices = run_choices[self.location]
l = len(choices) - 1
self.location = choices[random.randint(0,l)]
class player(object):
def __init__(self): = 'Player'
self.location = 'foyer'
def reveal(self):
print '%s is in the %s' % (, self.location)
Jump to Line
Something went wrong with that request. Please try again.