mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2026-01-01 07:27:55 -08:00
'Refactored by Sourcery'
This commit is contained in:
@@ -35,7 +35,7 @@ def play_game() -> None:
|
||||
print("You are starting a new game...")
|
||||
while True:
|
||||
guess_word = ""
|
||||
while guess_word == "":
|
||||
while not guess_word:
|
||||
guess_word = input("\nGuess a five letter word. ").upper()
|
||||
if guess_word == "?":
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user