Example #1
0
    def show_results(self):
        results = "*💰*: $" + str(self.pot) + "\n*Results:*"
        evaluator = Evaluator()
        for player in self.players:
            play_rank = evaluator.evaluate(self.board, player.hand)
            player_class = evaluator.get_rank_class(play_rank)
            player.play_rank = play_rank

            results += "\n• " + player.who_name + " Rank: " + str(
                play_rank) + ", Play: " + evaluator.class_to_string(
                    player_class) + "\n" + Card.print_pretty_cards(player.hand)

        self.update_players_money()
        winner = self.get_winner()
        results += "\n" + winner.who_name + " wins!"
        mac.send_message(results, self.conversation, True)
        self.finish()
Example #2
0
 def show_river(self):
     self.status = TexasStatus.RIVER
     cancel_future_message()
     mac.send_message("River:\n" + Card.print_pretty_cards(self.board[:5]),
                      self.conversation, False)