def _encode_specific(self, d):
     super()._encode_specific(d)
     d['NoSeat'] = self.no_seat
     d['PotId'] = self.pot_id
     d['WonAmount'] = self.won_amount
     d['TotalPotAmount'] = self.total_pot_amount
     d['TotalPlayerMoney'] = self.total_player_money
     d['WinningCards'] = self.winning_cards
     d['WinningHand'] = PokerHandEnum.to_string(self.winning_hand)
예제 #2
0
 def _encode_specific(self, d):
     super()._encode_specific(d)
     d['NoSeat'] = self.no_seat
     d['PotId'] = self.pot_id
     d['WonAmount'] = self.won_amount
     d['TotalPotAmount'] = self.total_pot_amount
     d['TotalPlayerMoney'] = self.total_player_money
     d['WinningCards'] = self.winning_cards
     d['WinningHand'] = PokerHandEnum.to_string(self.winning_hand)
 def __str__(self):
     return '{0} ({1}, {2}, {3}, {4}, {5} [{6}] {7})'.format(
         super().__str__(),
         self.no_seat,
         self.pot_id,
         self.won_amount,
         self.total_pot_amount,
         self.total_player_money,
         ', '.join(self.winning_cards),
         PokerHandEnum.to_string(self.winning_hand)
     )
예제 #4
0
 def __str__(self):
     return '{0} ({1}, {2}, {3}, {4}, {5} [{6}] {7})'.format(
         super().__str__(), self.no_seat, self.pot_id, self.won_amount,
         self.total_pot_amount, self.total_player_money,
         ', '.join(self.winning_cards),
         PokerHandEnum.to_string(self.winning_hand))