# I wrote you a little program, PS2 Guys (and Gals) #Global constants TEAM_PS2_IS_NICE = True # My life's constants WANT_PS2 = True CAN_DRAW = False CAN_MAKE_VIDEOS = False DAYS_TO_PRODUCE_IDEA = 5 IS_ALIVE = True # Function Block def attemptToDraw(): return CAN_DRAW def attemptToMakeVideos(): return CAN_MAKE_VIDEOS def cry(): print "why me?! ;_;" def makeSadProgram(): teamPS2IsGenerous = "Maybe" canHaveKey = str(raw_input("Can I have a beta key? Y/N: ")) if canHaveKey == "Yes" or canHaveKey == "yes" or canHaveKey == "Y" or canHaveKey == 'y': print '\n' + "OMG! Thanks!" teamPS2IsGenerous = True else: cry() teamPS2IsGenerous = False if TEAM_PS2_IS_NICE and teamPS2IsGenerous: return True else: return False ### Main haveBetaKey = False daysCried = 0 while WANT_PS2 == True and haveBetaKey == False and IS_ALIVE == True: haveBetaKey = attemptToDraw() haveBetaKey = attemptToMakeVideos() cry() daysCried += 1 if daysCried == DAYS_TO_PRODUCE_IDEA: haveBetaKey = makeSadProgram() elif daysCried >= 100: print "*dies of hearbreak*" IS_ALIVE = False if haveBetaKey: daysCried = 0 print "I got into the beta! Woot!"