def deal_flop(self): self.flop = self.deck.deal_n_cards(3) self.shared_cards = self.flop self.state += 1 # State should be 2 = post-flop self.log("Round #", self.round, ", Flop:", cards.card_names(self.flop), "- State:", self.state) self.show_shared_cards() if(self.debug_mode): self.show_active_player_stats()
def deal_flop(self): self.flop = self.deck.deal_n_cards(3) self.shared_cards = self.flop self.state += 1 # State should be 2 = post-flop self.log("Round #", self.round, ", Flop:", cards.card_names(self.flop), "- State:", self.state) self.show_shared_cards() if self.debug_mode: self.show_active_player_stats()
def print_action_info(self, shared_cards): print(self.name, "- play style: "+self.play_style, "(", self.money, "credits):", cards.card_names(self.cards), cards.calc_cards_power(self.cards + shared_cards)) print("Total wins before showdown: ", self.total_pre_showdown_win) print("Total wins at showdown: ", self.total_showdown_win) print("Total ties at showdown: ", self.total_showdown_tie) print("Total losses at showdown: ", self.total_showdown_loss) print("Total calls: ", self.total_call) print("Total checks: ", self.total_check) print("Total raises: ", self.total_raise) print("Total folds: ", self.total_fold) print("\n")
def print_info(self, shared_cards): print(self.name, "- play style: "+self.play_style, "(", self.money, "credits):", cards.card_names(self.cards), cards.calc_cards_power(self.cards + shared_cards))
def show_shared_cards(self): self.log("Shared cards:", cards.card_names(self.shared_cards))