aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar vivax3794 <[email protected]>2019-08-10 02:51:09 +0200
committerGravatar vivax3794 <[email protected]>2019-08-10 02:51:09 +0200
commit90e89ecc5be19464f83f0943d21320948dccce17 (patch)
tree3a4e0c73fabdb1e3cdf7a6e8a1172b26e531eca6
parentadded that you can provide a custom chance for bombs (diff)
fixed winning code again
-rw-r--r--bot/seasons/evergreen/minesweeper.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/seasons/evergreen/minesweeper.py b/bot/seasons/evergreen/minesweeper.py
index 3c3ee011..e48e3bba 100644
--- a/bot/seasons/evergreen/minesweeper.py
+++ b/bot/seasons/evergreen/minesweeper.py
@@ -86,6 +86,7 @@ class Minesweeper(commands.Cog):
await ctx.author.send("play by typing: `.reveal x y` or `.flag x y` \nclose the game with `.end`")
dm_msg = await ctx.author.send(self.format_for_discord(reveled_board))
+ await ctx.author.send(self.format_for_discord(board))
self.games[ctx.author] = {
"board": board,
@@ -169,11 +170,10 @@ class Minesweeper(commands.Cog):
if reveled[y_][x_] == "hidden" and board[y_][x_] != "bomb":
break_ = True
break
- else:
- await self.won(ctx)
- break
if break_:
break
+ else:
+ await self.won(ctx)
await self.reload_board(ctx)