Update pydle.py

develop
Conor Walker 3 years ago committed by GitHub
parent 313b64903c
commit 719c89287c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)

Loading…
Cancel
Save