Update app.py
Browse files
app.py
CHANGED
@@ -80,7 +80,7 @@ class WordGame:
|
|
80 |
|
81 |
def check_output_for_word(self, string):
|
82 |
print(f"Checking for '{self.target_word}' in '{string}'.")
|
83 |
-
if self.target_word in string:
|
84 |
self.points += self.attempts
|
85 |
print(f"The player scored {self.attempts} points and has a total of {self.points}.")
|
86 |
score_gained = self.attempts
|
|
|
80 |
|
81 |
def check_output_for_word(self, string):
|
82 |
print(f"Checking for '{self.target_word}' in '{string}'.")
|
83 |
+
if self.target_word in string.lower():
|
84 |
self.points += self.attempts
|
85 |
print(f"The player scored {self.attempts} points and has a total of {self.points}.")
|
86 |
score_gained = self.attempts
|