Created
September 27, 2011 22:49
-
-
Save jehoshua02/1246482 to your computer and use it in GitHub Desktop.
StupidGame
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
prompt = "> " | |
class StupidGame: | |
"""Stupid Game""" | |
def __init__(self): | |
self.run() | |
def run(self): | |
self.player = self.Player() | |
self.player.location = Home.Bedroom() | |
class Player: | |
"""The Player of the Stupid Game""" | |
name = "Stupid" | |
def choose(self): | |
print "What do you do?" | |
self.location.list_choices() | |
choice = | |
class Home: | |
"""Home of the Player of the Stupid Game""" | |
class Bedroom: | |
"""Bedroom of the Player of the Stupid Game""" | |
def __init__(self): | |
self.wake_up() | |
def wake_up(self): | |
print "You wake up, on a Saturday morning in your bedroom . . ." | |
print "Your wife calls your name, \"{0}! . . . {0}! . . .\"".format(self.player.name) | |
print "What do you do?" | |
StupidGame() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment