import random
stages = ['''
+---+
| |
O |
/|\ |
/ \ |
=========
''', '''
+---+
| |
O |
/|\ |
/ |
=========
''', '''
+---+
| |
O |
/|\ |
=========
''', '''
+---+
| |
O |
/| |
=========''', '''
+---+
| |
O |
| |
=========
''', '''
+---+
| |
O |
=========
''', '''
+---+
| |
=========
letters_number = 3
word_list = ["ardvark", "baboon", "camel"]
c = []
a = random.randint(0,(len(word_list) -1))
word_generator = word_list[a]
#print(word_generator)
d = 0
q = ""
z = 0
h = ''
t = 0
v = 3
for i in range(0,len(word_generator)):
if i < len(word_generator):
c += '_'
while d < len(word_generator) or int(t) < v:
chose = input("Guess a letter\n")
for i in range(0,len(word_generator)):
if chose == word_generator[i]:
c[i] = word_generator[i]
d += 1
#print("right")
if c[i] == chose:
z += 1000
if c[i] != chose:
z += -1
if z < 0:
h ="Wrong"
z = 0
else:
h = "True"
if h == "Wrong":
t += 1
print(c)
print(z)
print(h)
h = ''