diff options
| author | 2021-08-19 17:00:41 -0400 | |
|---|---|---|
| committer | 2021-08-19 17:00:41 -0400 | |
| commit | e2cd37b05318190a3ee8f248c75acab029f26e6f (patch) | |
| tree | 85cf884aa53f17fcf004e39b553ca9677d3dbdbd | |
| parent | Fix block comment style (diff) | |
Clarify comment about master image file
Diffstat (limited to '')
| -rw-r--r-- | bot/exts/evergreen/duck_game.py | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/bot/exts/evergreen/duck_game.py b/bot/exts/evergreen/duck_game.py index c8920483..8eb5d858 100644 --- a/bot/exts/evergreen/duck_game.py +++ b/bot/exts/evergreen/duck_game.py @@ -65,7 +65,9 @@ def assemble_board_image(board: list[tuple[int]], rows: int, columns: int) -> Im  def get_card_image(card: tuple[int]) -> Image:      """Slice the image containing all the cards to get just this card.""" -    row, col = divmod(as_trinary(card), 9)  # all_cards.png should have 9x9 cards +    # The master card image file should have 9x9 cards, +    # arranged such that their features can be interpreted as ordered trinary. +    row, col = divmod(as_trinary(card), 9)      x1 = col * CARD_WIDTH      x2 = x1 + CARD_WIDTH      y1 = row * CARD_HEIGHT | 
