Created
February 12, 2013 23:38
-
-
Save Isxida/4774547 to your computer and use it in GitHub Desktop.
Wreck it ralph - on gist
This file contains 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
class Ralph(object): | |
@staticmethod | |
def yell(mantra): | |
print mantra.upper() | |
@staticmethod | |
def wreck(item): | |
del item | |
class Vanellope(object): | |
@staticmethod | |
def cries(): | |
return False # SPOILER | |
games = ['Fix-It Felix', '...', 'Sugar Rush'] # SPOILER | |
for game in games: | |
Ralph.yell("I'm gonna wreck it!") | |
for item in game: | |
Ralph.wreck(item) | |
if Vanellope.cries(): | |
break |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment