def __init__(self, name="Legolas10921", skills={"attack": 3, "defence": 3, "harvesting": 0, 'alchemy': 0, 'magic': 0, 'potion': 0}): """Creates a new player card. Takes two arguments - the name, and then the skills in a dictionary "attack", "defence", "harvesting", "alchemy", "magic", and "potion". Their values must be integers, or be able to be added and multiplied by integers.""" super(player_card, self).__init__(name, True) if self.skills.keys() != skills.keys(): raise InvalidArgumentException("You do not have the keys: %s" % (str(self.skills.keys()), )) skills['overall'] = 0 for skill in skills: skills['overall'] += skill