Exemple #1
0
 def _support_point_adjustment_for_non_working_honors(self, trump):
     # We'll overbid if we count holdings like 'K' or 'Qx' for both HCPs and support points.
     point_adjustment = 0
     for suit in SUITS:
         cards = self.cards_by_suit_index[suit.index]
         if suit == trump or len(cards) not in (1, 2):
             continue
         if len(cards) == 1:
             if cards[0] != 'A':
                 point_adjustment -= Card.high_card_points(cards[0])
             continue
         if cards[-1] != "K":
             point_adjustment -= Card.high_card_points(cards[-1])
         if cards[0] not in ('A', 'K'):
             point_adjustment -= Card.high_card_points(cards[0])
     return point_adjustment