From 719c89287cc1886fb9c4d979701d0d5e12d87f07 Mon Sep 17 00:00:00 2001 From: Conor Walker <39270500+conor-walker@users.noreply.github.com> Date: Wed, 26 Jan 2022 12:14:38 +0000 Subject: [PATCH] Update pydle.py --- src/pydle.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pydle.py b/src/pydle.py index c8191ab..10c7baf 100644 --- a/src/pydle.py +++ b/src/pydle.py @@ -32,10 +32,12 @@ def checkRight(wordToGuess, guessSoFar): else: return False + def quit(): input("Thanks for playing! Press ENTER to exit :)") sys.exit(0) + def header(): return r" ______ ______ _ _____" + "\n" + \ r"| _ \ \ / / _ \| | | ____|" + "\n" + \ @@ -48,8 +50,7 @@ print("Welcome to...") print(header()) print("A totally original guessing game!") emptyWordGuess = ["_"] * 5 -wrongLetters = set() -rightLettersWrongPlace = set() +wrongLetters, rightLettersWrongPlace = set() wordToGuess = list(getWord().upper()) # print(wordToGuess)