def validate_attributes(self): """ Validates the attributes of this PlayerState :raise AssertionError if any attributes are out of bounds """ assert(isinstance(self.name, int) and self.name >= MIN_PLAYER_ID) assert(isinstance(self.food_bag, int) and self.food_bag >= MIN_FOOD_BAG) assert(isinstance(self.hand, list)) TraitCard.validate_all_attributes(self.hand) assert(isinstance(self.species, list)) Species.validate_all_attributes(self.species)