def _hint_detail(self): targets = self.game_control.players_from_current() targets.remove(self.player) import ext.src.hint_common as hints return hints.filter_empty(hints.allow_abort(hints.add_method_to( hints.basic_cards_hint(), 'bequeathed strategy', hints.join_req(hints.min_card_count(self.cards, 1), hints.fixed_target_count(targets, 1)))))
def _hint_detail(self): cards = self.game_control.player_cards_at(self.player, 'onhand') cards = filter(lambda c: c.suit() == card.HEART, cards) targets = self.game_control.players_from_current() targets.remove(self.player) import ext.src.hint_common as hints return hints.filter_empty(hints.allow_abort(hints.add_method_to( hints.basic_cards_hint(), SKILL, hints.join_req(hints.fixed_card_count(cards, 1), hints.fixed_target_count(targets, 1)))))
def __init__(self, game_control, slashing): hint = hints.filter_empty(hints.allow_abort(hints.add_method_to( hints.basic_cards_hint(), EQUIP_NAME, hints.forbid()))) AcceptMessage.__init__(self, game_control, [slashing.user], 'discard', hint, self.on_message) self.slashing = slashing
def _hint_detail(self): cards = self.game_control.player_cards_at(self.player, 'onhand') cards = filter(lambda c: c.suit() == self.suit, cards) return hints.filter_empty(hints.allow_abort(hints.add_method_to( hints.basic_cards_hint(), 'discard', hints.fixed_card_count(cards, 1))))
def _hint_detail(self): cards = self.game_control.player_cards_at(self.player, 'onhand') return hints.filter_empty(hints.add_method_to( hints.basic_cards_hint(), 'show', hints.fixed_card_count(cards, 1)))