Update app.py
Browse files
app.py
CHANGED
@@ -80,7 +80,7 @@ class WordGame:
|
|
80 |
|
81 |
|
82 |
def check_output_for_word(self, string):
|
83 |
-
print(f"Checking for '{self.target_word}' in '{string}'.")
|
84 |
if self.target_word in string.lower():
|
85 |
self.points += self.attempts
|
86 |
#print(f"The player scored {self.attempts} points and has a total of {self.points}.")
|
@@ -89,7 +89,7 @@ class WordGame:
|
|
89 |
return f"Success! You earned {score_gained} points!"
|
90 |
#self.update_status(message=f"Success! You earned {score_gained} points!")
|
91 |
else:
|
92 |
-
print("The response did not contain the word.")
|
93 |
self.attempts -= 1
|
94 |
#print(f"Remaining attempts: {self.attempts}")
|
95 |
if self.attempts <= 0:
|
|
|
80 |
|
81 |
|
82 |
def check_output_for_word(self, string):
|
83 |
+
#print(f"Checking for '{self.target_word}' in '{string}'.")
|
84 |
if self.target_word in string.lower():
|
85 |
self.points += self.attempts
|
86 |
#print(f"The player scored {self.attempts} points and has a total of {self.points}.")
|
|
|
89 |
return f"Success! You earned {score_gained} points!"
|
90 |
#self.update_status(message=f"Success! You earned {score_gained} points!")
|
91 |
else:
|
92 |
+
#print("The response did not contain the word.")
|
93 |
self.attempts -= 1
|
94 |
#print(f"Remaining attempts: {self.attempts}")
|
95 |
if self.attempts <= 0:
|