コード例 #1
0
 def add_maki(self):
     for i in range(12):
         self.cardDeck.append(Card("Maki(2)"))
     for i in range(8):
         self.cardDeck.append(Card("Maki(3)"))
     for i in range(6):
         self.cardDeck.append(Card("Maki 1)"))
コード例 #2
0
    def add_nigiri(self):
        for i in range(10):
            self.cardDeck.append(Card("Salmon Nigiri (+2)"))

        for i in range(5):
            self.cardDeck.append(Card("Squid Nigiri (+3)"))

        for i in range(5):
            self.cardDeck.append(Card("Egg Nigiri (+1)"))
コード例 #3
0
 def add_wasabi(self):
     for i in range(4):
         self.cardDeck.append(Card("Wasabi (3x next nigiri)"))
コード例 #4
0
 def add_pudding(self):
     for i in range(10):
         self.cardDeck.append(Card("Pudding (Most +6, Least -6)"))
コード例 #5
0
 def add_dumplings(self):
     for i in range(14):
         self.cardDeck.append(Card("Dumpling (/1, 2, 3, 4, 5+)"))
コード例 #6
0
 def add_sashimi(self):
     for i in range(14):
         self.cardDeck.append(Card("Sashimi (/3)"))
コード例 #7
0
 def add_tempura(self):
     for i in range(14):
         self.cardDeck.append(Card("Tempura", "(/2)"))
コード例 #8
0
 def __init__(self, name):
     self.name = name
     self.cards = []
     self.points = 0
     self.last_card = Card("blank")
     self.points_dict = {}
コード例 #9
0
 def from_str(s):
     card = Card.from_str(s)
     return BlackjackCard(card, True)