Skip to content

Commit ee93683

Browse files
committed
DR updates, first round
1 parent 9cdab3e commit ee93683

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

hangman-pysimplegui/source_code_final/hangman.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,16 +232,16 @@ def check_winner(self):
232232
if self._wrong_guesses < MAX_WRONG_GUESSES:
233233
self._won_games += 1
234234
answer = sg.PopupYesNo(
235-
f"You've won! Congratulations!\n"
235+
"You've won! Congratulations!\n"
236236
f"That's {self._won_games} out of {self._played_games}!\n"
237-
f"Another round?",
237+
"Another round?",
238238
title="Winner!",
239239
)
240240
else:
241241
answer = sg.PopupYesNo(
242242
f"You've lost! The word was '{self._target_word}'.\n"
243243
f"That's {self._won_games} out of {self._played_games}!\n"
244-
f"Another round?",
244+
"Another round?",
245245
title="Sorry!",
246246
)
247247
self.quit = answer == "No"

hangman-pysimplegui/source_code_step_6/hangman.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,16 +232,16 @@ def check_winner(self):
232232
if self._wrong_guesses < MAX_WRONG_GUESSES:
233233
self._won_games += 1
234234
answer = sg.PopupYesNo(
235-
f"You've won! Congratulations!\n"
235+
"You've won! Congratulations!\n"
236236
f"That's {self._won_games} out of {self._played_games}!\n"
237-
f"Another round?",
237+
"Another round?",
238238
title="Winner!",
239239
)
240240
else:
241241
answer = sg.PopupYesNo(
242242
f"You've lost! The word was '{self._target_word}'.\n"
243243
f"That's {self._won_games} out of {self._played_games}!\n"
244-
f"Another round?",
244+
"Another round?",
245245
title="Sorry!",
246246
)
247247
self.quit = answer == "No"

0 commit comments

Comments
 (0)