Created
March 1, 2018 19:34
-
-
Save calthoff/72367d191de232583c35056739754213 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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