def validate_cards(self, total_deck): """ Validates this species by checking that each of its TraitCards is unique and possible :param total_deck: a list of TraitCards representing all valid card possibilities :raise ValueError if invalid cards exist on any species """ TraitCard.validate_all_unique(self.traits, total_deck)
def validate_cards(self): """ Validates that all cards known by this dealer are valid possibilities and unique :raise: ValueError if duplicate or invalid cards exist """ total_deck = Dealer.make_deck() TraitCard.validate_all_unique(self.deck, total_deck) PlayerState.validate_all_cards(self.list_of_players, total_deck)
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)