|
|
@ -32,10 +32,12 @@ def checkRight(wordToGuess, guessSoFar):
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
return False
|
|
|
|
return False
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def quit():
|
|
|
|
def quit():
|
|
|
|
input("Thanks for playing! Press ENTER to exit :)")
|
|
|
|
input("Thanks for playing! Press ENTER to exit :)")
|
|
|
|
sys.exit(0)
|
|
|
|
sys.exit(0)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def header():
|
|
|
|
def header():
|
|
|
|
return r" ______ ______ _ _____" + "\n" + \
|
|
|
|
return r" ______ ______ _ _____" + "\n" + \
|
|
|
|
r"| _ \ \ / / _ \| | | ____|" + "\n" + \
|
|
|
|
r"| _ \ \ / / _ \| | | ____|" + "\n" + \
|
|
|
@ -48,8 +50,7 @@ print("Welcome to...")
|
|
|
|
print(header())
|
|
|
|
print(header())
|
|
|
|
print("A totally original guessing game!")
|
|
|
|
print("A totally original guessing game!")
|
|
|
|
emptyWordGuess = ["_"] * 5
|
|
|
|
emptyWordGuess = ["_"] * 5
|
|
|
|
wrongLetters = set()
|
|
|
|
wrongLetters, rightLettersWrongPlace = set()
|
|
|
|
rightLettersWrongPlace = set()
|
|
|
|
|
|
|
|
wordToGuess = list(getWord().upper())
|
|
|
|
wordToGuess = list(getWord().upper())
|
|
|
|
# print(wordToGuess)
|
|
|
|
# print(wordToGuess)
|
|
|
|
|
|
|
|
|
|
|
|