code: def attrs(self):
          
          ret = dict(self.__dict__) # obtain copy of internal __dict__
          del ret["_matches"] # match history is specifically distinguished from player information (and stored separately)
          if self.type != c.COMPUTER: # difficulty only matters for computer playres
              del ret["difficulty"]
          return ret
docs: provide a copy of this player's attributes as a dictionary