diff options
author | 2021-07-08 20:49:20 -0400 | |
---|---|---|
committer | 2021-07-09 14:02:38 -0400 | |
commit | 152fded782df5d666c94c5d58c80a9919d326890 (patch) | |
tree | 7a27541038ee77f5dcb35077b952c2a0e75ff2fe /bot/exts/evergreen/duck_game.py | |
parent | Add stop command for mods (diff) |
Minor improvements to documentation
Diffstat (limited to 'bot/exts/evergreen/duck_game.py')
-rw-r--r-- | bot/exts/evergreen/duck_game.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bot/exts/evergreen/duck_game.py b/bot/exts/evergreen/duck_game.py index 1661e855..bc33102f 100644 --- a/bot/exts/evergreen/duck_game.py +++ b/bot/exts/evergreen/duck_game.py @@ -18,6 +18,8 @@ from bot.constants import Colours, MODERATION_ROLES DECK = list(product(*[(0, 1, 2)]*4)) GAME_DURATION = 180 + +# Scoring CORRECT_SOLN = 1 INCORRECT_SOLN = -1 CORRECT_GOOSE = 2 @@ -49,7 +51,7 @@ def assemble_board_image(board: list[tuple[int]], rows: int, columns: int) -> Im row, col = divmod(idx, columns) top, left = row * CARD_HEIGHT, col * CARD_WIDTH new_im.paste(card_image, (left, top)) - draw.text((left+7, top+4), str(idx), (0, 0, 0)) # magic numbers are buffers for the card labels + draw.text((left+7, top+4), str(idx), (0, 0, 0)) # magic numbers are buffers for the card labels return new_im @@ -147,7 +149,6 @@ class DuckGamesDirector(commands.Cog): @commands.cooldown(rate=1, per=2, type=commands.BucketType.channel) async def start_game(self, ctx: commands.Context) -> None: """Generate a board, send the game embed, and end the game after a time limit.""" - # One game at a time per channel if ctx.channel.id in self.current_games: return |