DrDomedag commited on
Commit
a289b02
·
verified ·
1 Parent(s): 53d6bc4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -75,6 +75,7 @@ class WordGame:
75
 
76
  else:
77
  print(f"The player did not input the target word, so that's good.")
 
78
 
79
 
80
  def check_output_for_word(self, string):
@@ -96,6 +97,7 @@ class WordGame:
96
  #self.update_status(message=f"You did not win in three attempts. Generating new target word.")
97
  else:
98
  print(f"The player has attempts left.")
 
99
 
100
  def update_status(self, message=""):
101
  demo.title = f'Current score: {self.points}, remaining attempts: {self.attempts}, target word: "{self.target_word}" {message}'
 
75
 
76
  else:
77
  print(f"The player did not input the target word, so that's good.")
78
+ return ""
79
 
80
 
81
  def check_output_for_word(self, string):
 
97
  #self.update_status(message=f"You did not win in three attempts. Generating new target word.")
98
  else:
99
  print(f"The player has attempts left.")
100
+ return "That didn't quite hit the mark. Try again!"
101
 
102
  def update_status(self, message=""):
103
  demo.title = f'Current score: {self.points}, remaining attempts: {self.attempts}, target word: "{self.target_word}" {message}'