Advertisement
Guest User

Untitled

a guest
Nov 15th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.80 KB | None | 0 0
  1. def zero():
  2. print("_","_","_","_")
  3. print("|","","","","","|")
  4. print("|")
  5. print("|")
  6. print("|")
  7. print("|")
  8. print("|")
  9. def one():
  10. print("_","_","_","_")
  11. print("|","","","","","|")
  12. print("|","","","","","o")
  13. print("|")
  14. print("|")
  15. print("|")
  16. print("|")
  17. def two():
  18. print("_","_","_","_")
  19. print("|","","","","","|")
  20. print("|","","","","","o")
  21. print("|","","","","","|")
  22. print("|","","","","","|")
  23. print("|")
  24. print("|")
  25. def three():
  26. print("_","_","_","_")
  27. print("|","","","","","|")
  28. print("|","","","","","o")
  29. print("|","","","","","|")
  30. print("|","","","","","|")
  31. print("|","","","","/","")
  32. print("|")
  33. def four():
  34. print("_","_","_","_")
  35. print("|","","","","","|")
  36. print("|","","","","","o")
  37. print("|","","","","","|")
  38. print("|","","","","","|")
  39. print("|","","","","/","\\")
  40. print("|")
  41. def five():
  42. print("_","_","_","_")
  43. print("|","","","","","|")
  44. print("|","","","","","o")
  45. print("|","","","/","|","")
  46. print("|","","","","","|")
  47. print("|","","","","/","\\")
  48. print("|")
  49. def six():
  50. print("_","_","_","_")
  51. print("|","","","","","|")
  52. print("|","","","","","o")
  53. print("|","","","/","|","\\")
  54. print("|","","","","","|")
  55. print("|","","","","/","\\")
  56. print("|")
  57. def seven():
  58. print("GAME OVER")
  59. f0 = zero
  60. f1 = one
  61. f2 = two
  62. f3 = three
  63. f4 = four
  64. f5 = five
  65. f6 = six
  66. f7 = seven
  67. pic = [f0,f1,f2,f3,f4,f5,f6,f7]
  68. import random
  69. x = 0
  70. letters = []
  71. order = ["_","_","_","_"]
  72. words = ["four","true","word","pink","pear","bike","take","nice","bruh","ogey","snow","baby","girl","boys","lmao","date","dead","east","yeah","love","yous","body","typo"]
  73. print("==================================================")
  74. print("RULES:")
  75. print("There are only four-letter words in this level.")
  76. print("Input one letter at a time or it won't register.")
  77. print("Upper-case letters will also not register.")
  78. print("Goodnight, say it back.")
  79. print("==================================================")
  80. pic[0]()
  81. print(order)
  82. while True:
  83. word = random.choice(words)
  84. for i in word:
  85. letters.append(i)
  86. while (x < 7):
  87. y = input("Letter? ")
  88. if y in letters:
  89. z = letters.index(y)
  90. order[z] = y
  91. print(order)
  92. if y not in letters:
  93. x = x + 1
  94. print("\n")
  95. pic[x]()
  96. print(order)
  97. if order == letters:
  98. x = 7
  99. print("========")
  100. print("YOU WIN")
  101. print("========")
  102. x = 0
  103. letters = []
  104. order = ["_","_","_","_"]
  105. pic[0]()
  106. print(order)
  107. break
  108. if x == 7:
  109. print("========")
  110. print("YOU LOSE")
  111. print("========")
  112. print("YOUR WORD WAS: ", word)
  113. x = 0
  114. letters = []
  115. order = ["_","_","_","_"]
  116. pic[0]()
  117. print(order)
  118. break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement