function average = gap_average ( N )

% gap_average is a script which estimates the average score in a
% "GAP" game if the size of the gap is N.
%
  M = 10000;

  score_total = 0.0;
  for k = 1 : M
    score_total = score_total + gap ( N );
  end

  average = score_total / M;

  return
end