Skip to content

Instantly share code, notes, and snippets.

@calthoff
Created March 1, 2018 19:34
Show Gist options
  • Save calthoff/72367d191de232583c35056739754213 to your computer and use it in GitHub Desktop.
Save calthoff/72367d191de232583c35056739754213 to your computer and use it in GitHub Desktop.
while wrong < len(stages) - 1:
print("\n")
msg = "Guess a letter"
char = input(msg)
if char in remaining_letters:
cind = remaining_letters.index(char)
board[cind] = char
remaining_letters[cind] = '$'
else:
wrong += 1
print((" ".join(board)))
e = wrong + 1
print("\n".join(stages[0: e]))
if "__" not in board:
print("You win!")
print(" ".join(board))
win = True
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment