% Script/Function Filename:uicontrol
%     wordFindGUI.m
% Purpose:
%     Enter the purpose of the function/file here
%
% Record of modifications:
%     Programmer(s): {Your Name}
%     Date Due: YYYY-MM-DD
%     Date Submitted: YYYY-MM-DD
%     References: ????
%     Help Received: ????
%
% Variables Used:
%     Enter the variables that you use here

alphabet = 'A' : 'Z';
dimensions = randi( 9 ) + 1;
letters = alphabet( randi( 26 , 1 , dimensions .^ 2 ) );
clc;
disp( letters );

figure;
ourWordFind = makeWordFind( letters );
wordBoxes = zeros( dimensions );
x = linspace( 0 , 1 , dimensions + 1 );
y = fliplr( x );
x = x( 1 : dimensions );
y = y( 2 : end );
temp = ourWordFind';
for r = 1 : dimensions
    for c = 1 : dimensions
        wordBoxes( r , c ) = uicontrol( 'style' , 'text' , 'units' , ...
        'normalized' , 'fontunits' , 'normalized' , 'fontname' , ...
        'fixedwidth' , 'fontsize' , 1 / dimensions , 'position' , ...
        [ x( c ) y( r ) 1 / dimensions 1 / dimensions ] , ...
        'string' , temp( ( r - 1 ) * dimensions + c ) , 'fontsize' , ...
        1 );
    end
end