diff options
-rw-r--r-- | bot/seasons/evergreen/minesweeper.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/bot/seasons/evergreen/minesweeper.py b/bot/seasons/evergreen/minesweeper.py index e67a043b..241aa81d 100644 --- a/bot/seasons/evergreen/minesweeper.py +++ b/bot/seasons/evergreen/minesweeper.py @@ -163,11 +163,17 @@ class Minesweeper(commands.Cog): self.reveal(reveled, board, x, y) # check if won + break_ = False for x_ in range(10): for y_ in range(10): - if not (reveled[y_][x_] == "hidden" and board[y_][x_] == "bomb"): - await self.won(ctx) + if reveled[y_][x_] == "hidden" and board[y_][x_] != "bomb": + break_ = True break + else: + await self.won(ctx) + break + if break_: + break await self.reload_board(ctx) |