コード例 #1
0
 def validate_cards(self, total_deck):
     """
     Validates that the TraitCards in this PlayerState's hand and on its Species boards are all possible
     and unique
     :param total_deck: a list of TraitCards representing all valid card possibilities
     :raise ValueError if duplicate or invalid cards exist on this player
     """
     TraitCard.validate_all_unique(self.hand, total_deck)
     Species.validate_all_cards(self.species, total_deck)