Exemplo n.º 1
0
 def decline(self, notify=True):
     Offer.decline(self, notify)
     if self.variant_name == 'bughouse':
         assert (self.a.session.partner)
         assert (self.b.session.partner)
         self.a.session.partner.write_(
             '\n%s declines the match offer from your partner.\n',
             (self.b.name, ))
         self.b.session.partner.write_(
             '\nYour partner declines the match offer from %s.\n',
             (self.a.name, ))
Exemplo n.º 2
0
 def decline_open(self):
     """ Decline this offer due to the receiver no longer being open. """
     Offer.decline(self, notify=False)
     self.b.write(_('Challenge from %s removed.\n') % (self.a.name, ))
     self.a.write_(
         '\n%s, whom you were challenging, has become unavailable for matches.\nChallenge to %s withdrawn.',
         (self.b.name, self.b.name))
     if self.variant_name == 'bughouse':
         assert (self.a.session.partner)
         self.a.session.partner.write_(
             '\n%s, whom your partner was challenging, has become unavailable for matches.\n',
             (self.b.name, ))