diff options
| author | 2019-08-09 23:49:45 +0200 | |
|---|---|---|
| committer | 2019-08-09 23:49:45 +0200 | |
| commit | 4495cc3bf19fe67f5ae52d632324f3631a35d0b1 (patch) | |
| tree | 753198d1e881d928bfc819d27353bd25efcad9d3 | |
| parent | added extra stuff to `format_for_discord` and also added dm and channel message (diff) | |
changed format_for_discord, as suggested by Ava,
to now have letters at the top instead of numbers
| -rw-r--r-- | bot/seasons/evergreen/minesweeper.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bot/seasons/evergreen/minesweeper.py b/bot/seasons/evergreen/minesweeper.py index 543eab39..85339865 100644 --- a/bot/seasons/evergreen/minesweeper.py +++ b/bot/seasons/evergreen/minesweeper.py @@ -55,7 +55,9 @@ class Minesweeper(commands.Cog): "flag": ":triangular_flag_on_post:" } - discord_msg = ":stop_button: :one::two::three::four::five::six::seven::eight::nine::keycap_ten:\n\n" + discord_msg = ":stop_button: :regional_indicator_a::regional_indicator_b::regional_indicator_c:" \ + ":regional_indicator_d::regional_indicator_e::regional_indicator_f::regional_indicator_g:" \ + ":regional_indicator_h::regional_indicator_i::regional_indicator_j:\n\n" rows: typing.List[str] = [] for row_number, row in enumerate(board): new_row = mapping[row_number + 1] + " " @@ -77,12 +79,12 @@ class Minesweeper(commands.Cog): # Add game to list board = self.generate_board() - reveled_board = [["hidden" for _ in range(10)]for _ in range(10)] + reveled_board = [["hidden" for _ in range(10)] for _ in range(10)] await ctx.send(f"{ctx.author.mention} is playing minesweeper") chat_msg = await ctx.send(self.format_for_discord(reveled_board)) - await ctx.author.send("play by typing: `.reveal x y` and `.flag x y`") + 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)) self.games[ctx.author] = { |