aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Cam Caswell <[email protected]>2021-07-08 17:48:30 -0400
committerGravatar Cam Caswell <[email protected]>2021-07-09 14:02:38 -0400
commit1094ea17548b9ae9877e9100442c3883b50bedd5 (patch)
treecb9fb67bf3240dd4ad4259fd1feb84a73947b698
parentDefine minimum solutions distribution (diff)
Beautify multiline tuple comprehension
-rw-r--r--bot/exts/evergreen/duck_game.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/bot/exts/evergreen/duck_game.py b/bot/exts/evergreen/duck_game.py
index 62c8075c..ef13dc76 100644
--- a/bot/exts/evergreen/duck_game.py
+++ b/bot/exts/evergreen/duck_game.py
@@ -125,9 +125,10 @@ class DuckGame:
The completion of a line will only be a duplicate point if the other two points are the same,
which is prevented by the triangle iteration.
"""
- completion = tuple(feat_a if feat_a == feat_b else 3-feat_a-feat_b
- for feat_a, feat_b in zip(card_a, card_b)
- )
+ completion = tuple(
+ feat_a if feat_a == feat_b else 3-feat_a-feat_b
+ for feat_a, feat_b in zip(card_a, card_b)
+ )
try:
idx_c = self.board.index(completion)
except ValueError: