DrDomedag commited on
Commit
e2d52d2
·
verified ·
1 Parent(s): 58599b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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