Advertisement
Guest User

JimmyMcGimmi

a guest
May 23rd, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.09 KB | None | 0 0
  1. import os,random,time,datetime,turtle
  2.  
  3. #turtle.hideturtle()
  4. #turtle.speed(0)
  5. #turtle.penup()
  6. #turtle.goto(200,100)
  7. #turtle.color("red")
  8. #turtle.write("Respect Payer", align="right", font=("Trebuchet MS", 40, "italic"))
  9. #turtle.goto(150,60)
  10. #turtle.color("orange")
  11. #turtle.write("blaze it", align="right", font=("Kid Kosmic", 20, "bold"))
  12. #turtle.goto(-60,80)
  13. #turtle.color("purple")
  14. #turtle.write("420 edition", align="right", font=("Trebuchet MS", 13, "italic"))
  15. #turtle.done()
  16. #turtle.color("black")
  17. #turtle.penup()
  18. #turtle.goto(-100,0)
  19. #turtle.write("Teach With Code!", None, "left", "16pt bold")
  20. #time.sleep()
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28. date= datetime.datetime.now()
  29. dmy = str(date.day-1)+"/"+str(date.month)+"/"+str(date.year)
  30. gravestone = ("""
  31. _____ _____
  32. < `/ |
  33. > (
  34. | _ _ |
  35. | |_) | |_) |
  36. | | \ | | |
  37. | |
  38. ______.______%_| |__________ _____
  39. _/ \| |
  40. | J I M M Y M C G I M M I <
  41. |_____.-._________ ____/|___________|
  42. |* 1/6/2001 |
  43. | """+dmy+""" |
  44. | |
  45. | |
  46. | _ <
  47. |__/ |
  48. / `--. |
  49. %| |%
  50. |/.%%| -< @%%%
  51. `\%`@| v |@@%@%%
  52. .%%%@@@|% | % @@@%%@%%%%
  53. _.%%%%%%@@@@@@%%_/%\_%@@%%@@@@@@@%%%%%%""")
  54. gravestoneSeed = ("""
  55. _____ _____
  56. < `/ |
  57. > (
  58. | _ _ |
  59. | |_) | |_) |
  60. | | \ | | |
  61. | |
  62. ______.______%_| |__________ _____
  63. _/ \| |
  64. | J I M M Y M C G I M M I <
  65. |_____.-._________ ____/|___________|
  66. |* 1/6/2001 |
  67. | """+dmy+""" |
  68. | |
  69. | |
  70. | _ <
  71. |__/ |
  72. / `--. |
  73. %| |%
  74. |/.%%| -< @%%%
  75. `\%`@| v |@@%@%%
  76. _. .%%%@@@|% | % @@@%%@%%%%
  77. ______\||-_______-_.%%%%%%@@@@@@%%_/%\_%@@%%@@@@@@@%%%%%%""")
  78. gravestoneSeedling = ("""
  79. _____ _____
  80. < `/ |
  81. > (
  82. | _ _ |
  83. | |_) | |_) |
  84. | | \ | | |
  85. | |
  86. ______.______%_| |__________ _____
  87. _/ \| |
  88. | J I M M Y M C G I M M I <
  89. |_____.-._________ ____/|___________|
  90. |* 1/6/2001 |
  91. | """+dmy+""" |
  92. | |
  93. | |
  94. | _ <
  95. |__/ |
  96. / `--. |
  97. _ %| |%
  98. |@\ |/.%%| -< @%%%
  99. \/ `\%`@| v |@@%@%%
  100. (\|| .%%%@@@|% | % @@@%%@%%%%
  101. ______\||-_______-_.%%%%%%@@@@@@%%_/%\_%@@%%@@@@@@@%%%%%%""")
  102.  
  103. gravestonePlant = ("""
  104. .--.
  105. .'_\/_'.
  106. '. /\ .'
  107. "||"
  108. || /\
  109. /\ ||//\)
  110. (/\\||/
  111. ______\||/_______""")
  112. respect = 0
  113. def start():
  114.  
  115. startPage = input("""
  116. __ ________________________ __
  117. _| |_
  118. | Respect Payer 420 |
  119. _| Type to continue |_
  120. __|________________________|__
  121. ( New ) ( Load )
  122.  
  123. >""").lower().replace(" ", "")
  124.  
  125. if startPage == "new":
  126. os.system('cls')
  127. newUser()
  128. elif startPage == "load":
  129. os.system('cls')
  130. loadUser()
  131. else:
  132. os.system('cls')
  133. start()
  134.  
  135.  
  136.  
  137.  
  138.  
  139. def newUser():
  140. print ("""
  141. ~~ Give yourself a unique username ~~
  142. ~~ to save your progress for later ~~
  143. """)
  144.  
  145. userInputName=input("\n Give yourself a name!\n >").strip().replace(",", ".")
  146.  
  147. if userInputName == "":
  148. os.system('cls')
  149. print ("""
  150. ! You can't leave it blank !""")
  151. newUser()
  152.  
  153. file = open("users.txt","r")
  154. line = file.readlines()
  155. for x in line:
  156. xsplit = x.split(",,")
  157. if userInputName == xsplit[0]:
  158. os.system('cls')
  159. print ("\n ! Someone already has this name !")
  160. newUser()
  161.  
  162. userPassword=input("\n Give yourself a password!\n >").strip().replace(",", ".")
  163. if len(userPassword) <8:
  164. os.system('cls')
  165. print ("\n Your password should be at least 8 long")
  166. newUser()
  167.  
  168.  
  169. file = open("users.txt","a")
  170. file.write("\n"+userInputName+",,"+userPassword+",,1")
  171. file.close()
  172. os.system('cls')
  173. print (" Account created! \n .\n .\n Generating extensive story")
  174. time.sleep(4)
  175. os.system('cls')
  176. story1()
  177.  
  178. def story1():
  179. print gravestone
  180. print ("""
  181. As per the last message, it is clear that the individual who carries a name
  182. which is depicted on the 'ascii art' which bears some degree of resemblance
  183. to a gravestone is aliven't.
  184.  
  185. Thus, this individual may or may not deserve a certain level of respect.
  186. You will respect this person.
  187.  
  188. """)
  189. pressF= input(str("\n Press f to pay respect\n >"))
  190. if pressF == "f":
  191. os.system('cls')
  192. print (" Good boy")
  193. zone0(False,1)
  194. else:
  195. os.system('cls')
  196. print (" Maybe you should try again")
  197. time.sleep(2)
  198. os.system('cls')
  199. story1()
  200.  
  201. def loadUser():
  202. print ("""
  203. ~~ Type in your previously used name ~~
  204. ~~ and the password with that account ~~
  205. ~~ to load your prevoius product ~~
  206. """)
  207. userInputName=input("\n Type your name\n >").strip().replace(",", ".")
  208. userPassword=input("\n Type your password\n >").strip().replace(",", ".")
  209.  
  210. def zone0(noDisrespect,respect):
  211. while respect<15:
  212. print (" respect payed: "+str(respect))
  213. pressF= input(str("\n Press f to pay respect\n >"))
  214. os.system('cls')
  215. if pressF == "f":
  216. respect+=1
  217. else:
  218. print (" Don't disrespect")
  219. print gravestoneSeed
  220. print ("""
  221. Your respect has brought life when there was only death
  222. A small seed has spurted from the ground
  223. You can respect in new ways now
  224.  
  225. Use /help to respect in your old ways
  226. """)
  227. time.sleep(3)
  228. zone1(noDisrespect,respect)
  229.  
  230. def zone1(noDisrespect,respect):
  231. while respect<100:
  232. if respect>=80:
  233. print " Almost there"
  234. print (" respect payed: "+str(respect))
  235. letter= chr(random.randint(97,122))
  236. pressLetter = input("\n press "+str(letter)+" to pay respect\n >")
  237. inputProcess(pressLetter,1,respect)
  238. os.system('cls')
  239. if pressLetter == letter:
  240. respect+=3
  241. elif noDisrespect == True:
  242. print (" Welcome back!\n")
  243. else:
  244. print (" Try harder.\n")
  245. print gravestoneSeedling
  246. print ("""
  247. A seed is now a seedling.
  248. """)
  249. def zone2(noDisrespect,respect):
  250. while respect<100:
  251. if respect>=80:
  252. print "Almost there"
  253. print (" respect payed: "+str(respect))
  254. letter= chr(random.randint(97,122))
  255. pressLetter = input("\n press "+str(letter)+" to pay respect\n >")
  256. inputProcess(pressLetter,1,respect)
  257. os.system('cls')
  258. if pressLetter == letter:
  259. respect+=3
  260. elif noDisrespect == True:
  261. print (" Welcome back!\n")
  262. else:
  263. print (" Try harder.\n")
  264.  
  265. def inputProcess(userInput,zone,repect):
  266. if userInput.replace(" ","").lower() == "/help":
  267. commandHelp(zone,respect)
  268. elif userInput.replace(" ","").lower() == "/switch":
  269. switchRespectMode(zone,respect)
  270.  
  271. def commandHelp(zone,respect):
  272. os.system('cls')
  273. print ("""
  274. Help:
  275.  
  276. *Do /switch to change between methods of
  277. gaining respect
  278. *Do /save to save your progress to the file
  279. *Do /exit to save and go to menu
  280. """)
  281. print respect
  282. helpInput = input(" Type anything to contiue\n >")
  283.  
  284. zone = {
  285. 1 : zone1(True,respect),
  286. }
  287. def switchRespectMode(zone,respect):
  288. if zone == 1:
  289. switchInput = input("\nPick a")
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296. start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement