Exemple #1
0
    def GameStart(self):
        cards = Cards()
        card_group, landlord_cards = cards.DealPoker()
        for i, player in enumerate(self.players):
            player.SetCardList(card_group[i])
            player.WriteHandCardList()
        print(
            "===========================landlord_cards=======================")
        ShowCard(landlord_cards)
        self.game_status = 1
        self.game_score = 0
        while self.game_status == 1:
            if self.landlord.CallLandlord(self.game_score):
                self.game_score = self.landlord.GetCallScore()
                self.landlord.AddBottomCardList(landlord_cards)
                self.game_status = 2
            self.landlord = self.landlord.GetNextPlayer()

        print(self.landlord.GetDeskStation())