Example #1
0
 def hand_labels(self):
     from paigow.pghand import PGHand
     high_hand = PGHand.create_with_tile_chars(self.tiles[0].char(),
                                               self.tiles[1].char())
     low_hand = PGHand.create_with_tile_chars(self.tiles[2].char(),
                                              self.tiles[3].char())
     return high_hand.label() + "|" + low_hand.label()
Example #2
0
 def hands(self):
     from paigow.pghand import PGHand
     hand1 = PGHand.create_with_tile_chars(self.tiles[0].char(),
                                           self.tiles[1].char())
     hand2 = PGHand.create_with_tile_chars(self.tiles[2].char(),
                                           self.tiles[3].char())
     return hand1, hand2
Example #3
0
 def __unicode__(self):
     from paigow.pghand import PGHand
     hand1 = PGHand.create_with_tile_chars(self.tiles[0].char(),
                                           self.tiles[1].char())
     hand2 = PGHand.create_with_tile_chars(self.tiles[2].char(),
                                           self.tiles[3].char())
     return "Set: [" + str(hand1) + " ] ... [ " + str(hand2) + " ]"
Example #4
0
 def hand_labels( self ):
   from paigow.pghand import PGHand
   high_hand = PGHand.create_with_tile_chars( self.tiles[0].char(), self.tiles[1].char() )
   low_hand = PGHand.create_with_tile_chars( self.tiles[2].char(), self.tiles[3].char() )
   return high_hand.label() + "|" + low_hand.label()
Example #5
0
 def hands( self ):
   from paigow.pghand import PGHand
   hand1 = PGHand.create_with_tile_chars( self.tiles[0].char(), self.tiles[1].char() )
   hand2 = PGHand.create_with_tile_chars( self.tiles[2].char(), self.tiles[3].char() )
   return hand1, hand2
Example #6
0
 def __unicode__( self ):
   from paigow.pghand import PGHand
   hand1 = PGHand.create_with_tile_chars( self.tiles[0].char(), self.tiles[1].char() )
   hand2 = PGHand.create_with_tile_chars( self.tiles[2].char(), self.tiles[3].char() )
   return "Set: [" + str( hand1 ) + " ] ... [ " + str( hand2 ) + " ]"