예제 #1
0
파일: Games.py 프로젝트: djmoreho/Cards
 def __init__(self):
     Game.__init__(self)
     self.deck = generateDeck()
     self.hands = []
     self.discard = []
     self.pool = []
     self.intial_players = 0
예제 #2
0
    def __init__(self):
        Game.__init__(self)
        # self.gs = GameState() # can have optional logic outside class
        self.bets = []
        self.deck = generateDeck()
        self.hands = []
        self.river = []
        self.called_verbs = []
        self.intial_players = 0
        # we cheat here with a just horrible hack
        # because all the cards are randomly distributed
        # we can actually calculate the river first
        # and have 'false' animation interactions
        # god help me
        self.river.append(self.deck.pop())
        self.river.append(self.deck.pop())
        self.river.append(self.deck.pop())
        self.river.append(self.deck.pop())
        self.river.append(self.deck.pop())

        self.river_rounds = 0