function A = CardDeck
% A is a 1-by-52 cell array of strings that define a card deck

suit = {'Hearts ', 'Clubs ', 'Spades ', 'Diamonds'};
rank = {' A', ' 2', ' 3', ' 4', ' 5', ' 6', ' 7', ' 8', ' 9', '10',' J',' Q',' K'};

A = cell(1,52);

% i is the index of the next card to be set up
i = 1;

for k=1:4
% Set up the cards in suit k
for j=1:13
A{i} = [ rank{j} ' ' suit{k} ];
i = i+1;
end
end