def add_member(number)
      pnum = number.to_i
      raise "'#{number}' is not a valid as a team member player number" if pnum == 0 && !number.to_s.match(/^[^\d]*0/)
      raise "can't add duplicate player number #{pnum} to team '#{@name}'" if @members.include?(pnum)
      @members.push(pnum)
    end
def add_member(number)
      pnum = number.to_i
      raise "'#{number}' is not a valid as a team member player number" if pnum == 0 && !number.to_s.match(/^[^\d]*0/)
      raise "can't add duplicate player number #{pnum} to team '#{@name}'" if @members.include?(pnum)
      @members.push(pnum)
    end
Add a team member referenced by any integer.