Skip to content

Instantly share code, notes, and snippets.

@jehoshua02
Created September 27, 2011 22:49
Show Gist options
  • Save jehoshua02/1246482 to your computer and use it in GitHub Desktop.
Save jehoshua02/1246482 to your computer and use it in GitHub Desktop.
StupidGame
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