Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def zero():
- print("_","_","_","_")
- print("|","","","","","|")
- print("|")
- print("|")
- print("|")
- print("|")
- print("|")
- def one():
- print("_","_","_","_")
- print("|","","","","","|")
- print("|","","","","","o")
- print("|")
- print("|")
- print("|")
- print("|")
- def two():
- print("_","_","_","_")
- print("|","","","","","|")
- print("|","","","","","o")
- print("|","","","","","|")
- print("|","","","","","|")
- print("|")
- print("|")
- def three():
- print("_","_","_","_")
- print("|","","","","","|")
- print("|","","","","","o")
- print("|","","","","","|")
- print("|","","","","","|")
- print("|","","","","/","")
- print("|")
- def four():
- print("_","_","_","_")
- print("|","","","","","|")
- print("|","","","","","o")
- print("|","","","","","|")
- print("|","","","","","|")
- print("|","","","","/","\\")
- print("|")
- def five():
- print("_","_","_","_")
- print("|","","","","","|")
- print("|","","","","","o")
- print("|","","","/","|","")
- print("|","","","","","|")
- print("|","","","","/","\\")
- print("|")
- def six():
- print("_","_","_","_")
- print("|","","","","","|")
- print("|","","","","","o")
- print("|","","","/","|","\\")
- print("|","","","","","|")
- print("|","","","","/","\\")
- print("|")
- def seven():
- print("GAME OVER")
- f0 = zero
- f1 = one
- f2 = two
- f3 = three
- f4 = four
- f5 = five
- f6 = six
- f7 = seven
- pic = [f0,f1,f2,f3,f4,f5,f6,f7]
- import random
- x = 0
- letters = []
- order = ["_","_","_","_"]
- words = ["four","true","word","pink","pear","bike","take","nice"]
- pic[0]()
- print(order)
- while True:
- word = random.choice(words)
- for i in word:
- letters.append(i)
- while (x < 7):
- y = input("Letter? ")
- if y in letters:
- z = letters.index(y)
- order[z] = y
- print(order)
- if y not in letters:
- x = x + 1
- pic[x]()
- print(order)
- if order == letters:
- x = 7
- print("========")
- print("YOU WIN")
- print("========")
- x = 0
- letters = []
- order = ["_","_","_","_"]
- pic[0]()
- print(order)
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement