예제 #1
0
파일: frames.py 프로젝트: neuront/sgs
 def _update_hint(self):
     self.hint_cache = hints.allow_abort(hints.basic_cards_hint())
     self._build_card_hint()
     for h in self.player.using_hint():
         h(self.hint_cache, self.game_control, self.player, self.interface_map)
     if len(self.hint_cache["methods"]) == 0:
         del self.hint_cache["methods"]
예제 #2
0
파일: frames.py 프로젝트: neuront/sgs
 def __init__(self, game_control, player):
     core.UseCards.__init__(self, game_control, player, _using_cards_map())
     self.hint_dict = _hint_dict()
     self.hint_cache = hints.basic_cards_hint()
     self._update_hint()
예제 #3
0
파일: frames.py 프로젝트: neuront/sgs
 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(), "discard", hints.fixed_card_count(cards, self.need_discard))
     )