Beispiel #1
0
 def discard_check(cards_ids):
     checking.cards_region(game_control.cards_by_ids(cards_ids), 'cards')
     if len(cards_ids) != need_discard:
         raise ValueError('must discard ' + str(need_discard) + ' cards')
Beispiel #2
0
 def discard_check(cards_ids):
     checking.cards_region(game_control.cards_by_ids(cards_ids),
                           'cards')
     if len(cards_ids) != need_discard:
         raise ValueError('must discard ' + str(need_discard) +
                          ' cards')
Beispiel #3
0
 def _check(self, cards_ids):
     if len(cards_ids) != self.need_discard:
         raise ValueError("must discard %d cards" % self.need_discard)
     checking.cards_region(self.game_control.cards_by_ids(cards_ids), "onhand")