Skip to content

Commit

Permalink
fix: fixed check_for_win
Browse files Browse the repository at this point in the history
  • Loading branch information
JaredIsaacs committed Mar 11, 2024
1 parent cc51c9d commit b8b64f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions tempCodeRunnerFile.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
guild
5 changes: 2 additions & 3 deletions wordleboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,9 @@ def check_for_loss(self):


def check_for_win(self, row):
for i in range(len(row)):
if row[i] != 2:
return False
if self.correct_chars == 5:
return True
return False


def create_wordle_square(self, char: str, x: int, y: int) -> Image:
Expand Down

0 comments on commit b8b64f8

Please sign in to comment.