diff libervia/backend/plugins/plugin_misc_tarot.py @ 4270:0d7bb4df2343

Reformatted code base using black.
author Goffi <goffi@goffi.org>
date Wed, 19 Jun 2024 18:44:57 +0200
parents 26b7ed2817da
children
line wrap: on
line diff
--- a/libervia/backend/plugins/plugin_misc_tarot.py	Tue Jun 18 12:06:45 2024 +0200
+++ b/libervia/backend/plugins/plugin_misc_tarot.py	Wed Jun 19 18:44:57 2024 +0200
@@ -141,7 +141,12 @@
         for value in ["excuse"] + list(map(str, list(range(1, 22)))):
             self.deck_ordered.append(TarotCard(("atout", value)))
         for suit in ["pique", "coeur", "carreau", "trefle"]:
-            for value in list(map(str, list(range(1, 11)))) + ["valet", "cavalier", "dame", "roi"]:
+            for value in list(map(str, list(range(1, 11)))) + [
+                "valet",
+                "cavalier",
+                "dame",
+                "roi",
+            ]:
                 self.deck_ordered.append(TarotCard((suit, value)))
         self.__choose_contrat_id = host.register_callback(
             self._contrat_choosed, with_data=True
@@ -474,9 +479,7 @@
                 if played_card.suit == "atout" and played_card > biggest_atout:
                     biggest_atout = played_card
                 idx = (idx + 1) % len(players)
-            has_suit = (
-                False
-            )  # True if there is one card of the asked suit in the hand of the player
+            has_suit = False  # True if there is one card of the asked suit in the hand of the player
             has_atout = False
             biggest_hand_atout = None
 
@@ -608,7 +611,7 @@
             hand[players[i]] = deck[0:hand_size]
             del deck[0:hand_size]
         chien.extend(deck)
-        del (deck[:])
+        del deck[:]
         msg_elts = {}
         for player in players:
             msg_elts[player] = self.__card_list_to_xml(hand[player], "hand")