def get_pitches(pid)
      results = []
      atbats = get_atbats
      atbats.each do |ab|
        if ab.pitcher_id == pid
          results << ab.pitches
        end
      end
      results.flatten
    end
def get_pitches(pid)
      results = []
      atbats = get_atbats
      atbats.each do |ab|
        if ab.pitcher_id == pid
          results << ab.pitches
        end
      end
      results.flatten
    end
def get_pitches ( pid ) results = [ ] atbats = get_atbats atbats . each do | ab | if ab . pitcher_id == pid results << ab . pitches end end results . flatten end
Returns an array of pitches from this game for the pitcher identified by pid
Returns an array of pitches from this game for the pitcher identified by pid