Advertisement
Psylock

My Little Present

Jun 11th, 2012
638
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.46 KB | None | 0 0
  1. # I wrote you a little program, PS2 Guys (and Gals)
  2. #Global constants
  3. TEAM_PS2_IS_NICE = True
  4.  
  5. # My life's constants
  6. WANT_PS2 = True
  7. CAN_DRAW = False
  8. CAN_MAKE_VIDEOS = False
  9. DAYS_TO_PRODUCE_IDEA = 5
  10. IS_ALIVE = True
  11.  
  12. # Function Block
  13. def attemptToDraw():
  14.         return CAN_DRAW
  15.        
  16. def attemptToMakeVideos():
  17.         return CAN_MAKE_VIDEOS
  18.        
  19. def cry():
  20.         print "why me?! ;_;"
  21.        
  22. def makeSadProgram():
  23.         teamPS2IsGenerous = "Maybe"
  24.         canHaveKey = str(raw_input("Can I have a beta key? Y/N: "))
  25.         if canHaveKey == "Yes" or canHaveKey == "yes" or canHaveKey == "Y" or canHaveKey == 'y':
  26.                 print '\n' + "OMG! Thanks!"
  27.                 teamPS2IsGenerous = True
  28.         else:
  29.                 cry()
  30.                 teamPS2IsGenerous = False
  31.  
  32.         if TEAM_PS2_IS_NICE and teamPS2IsGenerous:
  33.                 return True
  34.         else:
  35.                 return False
  36.        
  37. ### Main
  38. haveBetaKey = False
  39. daysCried = 0
  40. while WANT_PS2 == True and haveBetaKey == False and IS_ALIVE == True:
  41.         haveBetaKey = attemptToDraw()
  42.         haveBetaKey = attemptToMakeVideos()
  43.         cry()
  44.         daysCried += 1
  45.        
  46.         if daysCried == DAYS_TO_PRODUCE_IDEA:
  47.                 haveBetaKey = makeSadProgram()
  48.         elif daysCried >= 100:
  49.                 print "*dies of hearbreak*"
  50.                 IS_ALIVE = False
  51.  
  52. if haveBetaKey:
  53.         daysCried = 0
  54.         print "I got into the beta! Woot!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement