function no_result = jump_shot()
% Purpose:
% Find the optimum initial velocities to shoot a 10m jump 
% shot with a 1s time of flight. 

% Desired Jump Shot Parameters:
global x1 y1 t1 trajectory_plot_style

t1 = 1.0;  % seconds flight time
x1 = 10.0; % a 30-ft jump shot
y1 = 3.0-2.0;  % rim 10-ft above floor, player 6-ft tall
trajectory_plot_style = 'r-';

% Amoeba earch parameters:
v_guess = [50,10];    % initial guess velocity
n_shots = 30;

hold on

v_result = amoeba('miss_distance',v_guess,n_shots);

trajectory_plot_style = 'b-';
missed_by = miss_distance(v_result)

hold off